File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed
tools/releaseBuild/azureDevOps/templates Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 1717 $azcopy = Find-AzCopy
1818 Write-Verbose -Verbose "Found AzCopy: $azcopy"
1919
20- & $azcopy login --service-principal --application-id $(PowerShellReleaseSPN)
2120 & $azcopy cp https://$(StorageAccount).blob.core.windows.net/$(AzureVersion) $(System.ArtifactsDirectory) --recursive
2221
2322 $packagesPath = Get-ChildItem -Path $(System.ArtifactsDirectory)\*.deb -Recurse -File | Select-Object -First 1 -ExpandProperty DirectoryName
2726 displayName : Download Azure Artifacts
2827 retryCountOnTaskFailure : 2
2928 env :
30- AZCOPY_SPA_CLIENT_SECRET : $(PowerShellReleaseSPNSecret)
29+ AZCOPY_AUTO_LOGIN_TYPE : MSI
3130
3231- pwsh : |
3332 Get-ChildItem $(System.ArtifactsDirectory)\* -recurse | Select-Object -ExpandProperty FullName
Original file line number Diff line number Diff line change @@ -16,13 +16,11 @@ steps:
1616 $azcopy = Find-AzCopy
1717 Write-Verbose -Verbose "Found AzCopy: $azcopy"
1818
19- & $azcopy login --service-principal --application-id $(PowerShellReleaseSPN)
20-
2119 & $azcopy cp https://$(StorageAccount).blob.core.windows.net/$(AzureVersion)/* $(System.ArtifactsDirectory) --recursive
2220
2321 displayName : Download Azure Artifacts
2422 env :
25- AZCOPY_SPA_CLIENT_SECRET : $(PowerShellReleaseSPNSecret)
23+ AZCOPY_AUTO_LOGIN_TYPE : MSI
2624
2725- pwsh : |
2826 Get-ChildItem $(System.ArtifactsDirectory)\* -recurse | Select-Object -ExpandProperty Name
Original file line number Diff line number Diff line change @@ -38,16 +38,13 @@ jobs:
3838 Import-module '$(BUILD.SOURCESDIRECTORY)/build.psm1'
3939 $azcopy = Find-AzCopy
4040 Write-Verbose -Verbose "Found AzCopy: $azcopy"
41-
42- & $azcopy login --service-principal --application-id $(PowerShellReleaseSPN)
43-
4441 Write-Host "running: $azcopy cp https://$(StorageAccount).blob.core.windows.net/$(AzureVersion)/PowerShell-$(Version)-win-${{ parameters.architecture }}.zip $(System.ArtifactsDirectory)"
4542
4643 & $azcopy cp https://$(StorageAccount).blob.core.windows.net/$(AzureVersion)/PowerShell-$(Version)-win-${{ parameters.architecture }}.zip $(System.ArtifactsDirectory)
4744 displayName: 'Download Azure Artifacts'
4845 retryCountOnTaskFailure: 2
4946 env:
50- AZCOPY_SPA_CLIENT_SECRET: $(PowerShellReleaseSPNSecret)
47+ AZCOPY_AUTO_LOGIN_TYPE: MSI
5148
5249 - pwsh : ' Get-ChildItem $(System.ArtifactsDirectory)\* -recurse | Select-Object -ExpandProperty Name'
5350 displayName : ' Capture Artifact Listing'
You can’t perform that action at this time.
0 commit comments