diff options
| author | Billy O'Neal <bion@microsoft.com> | 2021-08-02 14:15:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-02 14:15:48 -0700 |
| commit | 403c952a0c6496e07cdf995114fe8b9ae5e1f65c (patch) | |
| tree | 8dea3f75e012706112d7f95876a5009ac1eeedef /scripts/azure-pipelines/linux | |
| parent | 261c458af6e3eed5d099144aff95d2b5035f656b (diff) | |
| download | vcpkg-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/linux')
| -rw-r--r-- | scripts/azure-pipelines/linux/azure-pipelines.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/azure-pipelines/linux/azure-pipelines.yml b/scripts/azure-pipelines/linux/azure-pipelines.yml index 0c126d886..e76ebc5b6 100644 --- a/scripts/azure-pipelines/linux/azure-pipelines.yml +++ b/scripts/azure-pipelines/linux/azure-pipelines.yml @@ -28,10 +28,11 @@ jobs: displayName: 'Create /home/agent'
# Note: /mnt is the Azure machines' temporary disk.
- bash: |
+ sudo rm -rf ${{ variables.VCPKG_DOWNLOADS }}
sudo mkdir ${{ variables.WORKING_ROOT }} -m=777
sudo mkdir ${{ variables.VCPKG_DOWNLOADS }} -m=777
exit 0
- displayName: 'Create ${{ variables.VCPKG_DOWNLOADS }}'
+ displayName: 'Create ${{ variables.WORKING_ROOT }} and ${{ variables.VCPKG_DOWNLOADS }}'
- task: Bash@3
displayName: 'Bootstrap vcpkg'
inputs:
|
