File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
eng/common/pipelines/templates/steps Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,10 @@ parameters:
10
10
steps :
11
11
- template : /eng/common/pipelines/templates/steps/set-default-branch.yml
12
12
- pwsh : |
13
- Invoke-WebRequest -MaximumRetryCount 10 -Uri "https://aka.ms/downloadazcopy-v10-windows" -OutFile "azcopy.zip" | Wait-Process;
14
- Expand-Archive -Path "azcopy.zip" -DestinationPath "$(Build.BinariesDirectory)/azcopy/"
13
+ if (!(Test-Path '$(Build.BinariesDirectory)/azcopy/azcopy_windows_amd64_*/azcopy.exe')) {
14
+ Invoke-WebRequest -MaximumRetryCount 10 -Uri "https://aka.ms/downloadazcopy-v10-windows" -OutFile "azcopy.zip" | Wait-Process;
15
+ Expand-Archive -Path "azcopy.zip" -DestinationPath "$(Build.BinariesDirectory)/azcopy/" -Force
16
+ }
15
17
workingDirectory : $(Build.BinariesDirectory)
16
18
displayName : Download and Extract azcopy Zip
17
19
You can’t perform that action at this time.
0 commit comments