[d16-9] [CI][VSTS] Use the creds store in git for https. (#10536)
This commit is contained in:
Родитель
fd1fc09999
Коммит
04bdcdaa8c
|
@ -28,6 +28,12 @@ steps:
|
|||
- checkout: release-scripts
|
||||
clean: true
|
||||
|
||||
- pwsh: |
|
||||
rm -Rf "$HOME\.git-credentials"
|
||||
git config --global credential.helper store
|
||||
Set-Content -Path "$HOME\.git-credentials" -Value "https://$(GitHub.Token):x-oauth-basic@github.com`n" -NoNewline
|
||||
displayName: 'Add git creds store'
|
||||
|
||||
- powershell: |
|
||||
gci env: | format-table -autosize -wrap
|
||||
displayName: 'Dump Environment'
|
||||
|
@ -473,3 +479,8 @@ steps:
|
|||
artifactName: HtmlReport-sim
|
||||
continueOnError: true
|
||||
condition: and(succeededOrFailed(), contains(variables['runTests.TESTS_RAN'], 'True')) # if tests did not run, there is nothing to do
|
||||
|
||||
- pwsh: |
|
||||
rm -Rf "$HOME\.git-credentials"
|
||||
displayName: 'Remove git creds store'
|
||||
condition: always()
|
||||
|
|
Загрузка…
Ссылка в новой задаче