aboutsummaryrefslogtreecommitdiff
path: root/scripts/azure-pipelines/windows
diff options
context:
space:
mode:
authorBilly O'Neal <bion@microsoft.com>2021-08-02 14:15:48 -0700
committerGitHub <noreply@github.com>2021-08-02 14:15:48 -0700
commit403c952a0c6496e07cdf995114fe8b9ae5e1f65c (patch)
tree8dea3f75e012706112d7f95876a5009ac1eeedef /scripts/azure-pipelines/windows
parent261c458af6e3eed5d099144aff95d2b5035f656b (diff)
downloadvcpkg-403c952a0c6496e07cdf995114fe8b9ae5e1f65c.tar.gz
vcpkg-403c952a0c6496e07cdf995114fe8b9ae5e1f65c.zip
Clean the downloads directory every CI run. (#19311)
Now that vcpkg has artifact caching, meaning downloading artifacts usually doesn't have to leave the datacenter, there's no need to potentially dirty different runs with leftover downloads from each other. This resulted in some "impossible" results in https://github.com/microsoft/vcpkg/pull/18687 where a previous PR run accidentially downloaded the Windows version of nodejs to /mnt/vcpkg-ci/downloads/node-v14.17.4-linux-x64.tar.xz
Diffstat (limited to 'scripts/azure-pipelines/windows')
-rw-r--r--scripts/azure-pipelines/windows/azure-pipelines.yml7
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/azure-pipelines/windows/azure-pipelines.yml b/scripts/azure-pipelines/windows/azure-pipelines.yml
index 9b52378b5..c70eab86b 100644
--- a/scripts/azure-pipelines/windows/azure-pipelines.yml
+++ b/scripts/azure-pipelines/windows/azure-pipelines.yml
@@ -29,11 +29,8 @@ jobs:
- script: .\bootstrap-vcpkg.bat
displayName: 'Bootstrap vcpkg'
- script: |
- dir ${{ variables.VCPKG_DOWNLOADS }} 2>&1 || (call )
- dir ${{ variables.VCPKG_DOWNLOADS }}\tools 2>&1 || (call )
- dir ${{ variables.VCPKG_DOWNLOADS }}\tools\msys2 2>&1 || (call )
- rmdir /S /Q ${{ variables.VCPKG_DOWNLOADS }}\tools\msys2 2>&1 || (call )
- displayName: 'Clean msys2 downloads'
+ rmdir /S /Q ${{ variables.VCPKG_DOWNLOADS }} 2>&1
+ displayName: 'Clean downloads'
- task: PowerShell@2
displayName: '*** Test Modified Ports and Prepare Test Logs ***'
inputs: