File tree 3 files changed +3
-9
lines changed
tools/releaseBuild/azureDevOps/templates
3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 17
17
$azcopy = Find-AzCopy
18
18
Write-Verbose -Verbose "Found AzCopy: $azcopy"
19
19
20
- & $azcopy login --service-principal --application-id $(PowerShellReleaseSPN)
21
20
& $azcopy cp https://$(StorageAccount).blob.core.windows.net/$(AzureVersion) $(System.ArtifactsDirectory) --recursive
22
21
23
22
$packagesPath = Get-ChildItem -Path $(System.ArtifactsDirectory)\*.deb -Recurse -File | Select-Object -First 1 -ExpandProperty DirectoryName
27
26
displayName : Download Azure Artifacts
28
27
retryCountOnTaskFailure : 2
29
28
env :
30
- AZCOPY_SPA_CLIENT_SECRET : $(PowerShellReleaseSPNSecret)
29
+ AZCOPY_AUTO_LOGIN_TYPE : MSI
31
30
32
31
- pwsh : |
33
32
Get-ChildItem $(System.ArtifactsDirectory)\* -recurse | Select-Object -ExpandProperty FullName
Original file line number Diff line number Diff line change @@ -16,13 +16,11 @@ steps:
16
16
$azcopy = Find-AzCopy
17
17
Write-Verbose -Verbose "Found AzCopy: $azcopy"
18
18
19
- & $azcopy login --service-principal --application-id $(PowerShellReleaseSPN)
20
-
21
19
& $azcopy cp https://$(StorageAccount).blob.core.windows.net/$(AzureVersion)/* $(System.ArtifactsDirectory) --recursive
22
20
23
21
displayName : Download Azure Artifacts
24
22
env :
25
- AZCOPY_SPA_CLIENT_SECRET : $(PowerShellReleaseSPNSecret)
23
+ AZCOPY_AUTO_LOGIN_TYPE : MSI
26
24
27
25
- pwsh : |
28
26
Get-ChildItem $(System.ArtifactsDirectory)\* -recurse | Select-Object -ExpandProperty Name
Original file line number Diff line number Diff line change @@ -38,16 +38,13 @@ jobs:
38
38
Import-module '$(BUILD.SOURCESDIRECTORY)/build.psm1'
39
39
$azcopy = Find-AzCopy
40
40
Write-Verbose -Verbose "Found AzCopy: $azcopy"
41
-
42
- & $azcopy login --service-principal --application-id $(PowerShellReleaseSPN)
43
-
44
41
Write-Host "running: $azcopy cp https://$(StorageAccount).blob.core.windows.net/$(AzureVersion)/PowerShell-$(Version)-win-${{ parameters.architecture }}.zip $(System.ArtifactsDirectory)"
45
42
46
43
& $azcopy cp https://$(StorageAccount).blob.core.windows.net/$(AzureVersion)/PowerShell-$(Version)-win-${{ parameters.architecture }}.zip $(System.ArtifactsDirectory)
47
44
displayName: 'Download Azure Artifacts'
48
45
retryCountOnTaskFailure: 2
49
46
env:
50
- AZCOPY_SPA_CLIENT_SECRET: $(PowerShellReleaseSPNSecret)
47
+ AZCOPY_AUTO_LOGIN_TYPE: MSI
51
48
52
49
- pwsh : ' Get-ChildItem $(System.ArtifactsDirectory)\* -recurse | Select-Object -ExpandProperty Name'
53
50
displayName : ' Capture Artifact Listing'
You can’t perform that action at this time.
0 commit comments