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:
1010steps :
1111- template : /eng/common/pipelines/templates/steps/set-default-branch.yml
1212- 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+ }
1517 workingDirectory : $(Build.BinariesDirectory)
1618 displayName : Download and Extract azcopy Zip
1719
You can’t perform that action at this time.
0 commit comments