[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:
parent
078608e7f0
commit
158371de38
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user