Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the credential environment configuration to the Git checkout command #4965

Conversation

ivanduplenskikh
Copy link
Contributor

@ivanduplenskikh ivanduplenskikh commented Aug 28, 2024

Description: The credential environment config property is added to the Git checkout command when either filter fetch input or the agent knob ADD_FORCE_CREDENTIALS_TO_GIT_CHECKOUT is provided.
This PR addresses the issue of the pipeline agent encountering credentials prompting when attempting to access a private repository with specified filter options.

Related WI: AB#2209290, #4860

The credential environment config property is added to the Git checkout command when either filter fetch options or the agent knob ADD_FORCE_CREDENTIALS_TO_GIT_CHECKOUT is provided
- Variables are now declared using the var keyword
- The GitFetch method now accepts an IEnumerable<string> for the filters parameter instead of a List<string>
…with-filter-options' of https://github.com/microsoft/azure-pipelines-agent into users/v-ivandu/add-credential-env-variable-to-checkout-with-filter-options
@ivanduplenskikh ivanduplenskikh merged commit 3d3822c into master Sep 17, 2024
20 checks passed
@ivanduplenskikh ivanduplenskikh deleted the users/v-ivandu/add-credential-env-variable-to-checkout-with-filter-options branch September 17, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants