[Ci] clean up the old artifacts in the agent before downloading the new artifacts (#12391)

Ci] clean up the old artifacts in the agent before downloading the new artifacts
This commit is contained in:
xumia 2022-10-25 15:45:01 +08:00 committed by GitHub
parent 078608e7f0
commit 158371de38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -27,6 +27,10 @@ steps:
clean: true
displayName: 'checkout sonic-mgmt repo'
- script: |
sudo rm -rf ../target
displayName: "Cleanup"
- task: DownloadPipelineArtifact@2
inputs:
artifact: sonic-buildimage.vs

View File

@ -98,6 +98,11 @@ stages:
submodules: recursive
displayName: 'Checkout code'
- script: |
sudo rm -rf ../target
sudo rm -rf ../*.deb
displayName: "Cleanup"
- task: DownloadPipelineArtifact@2
inputs:
source: specific