[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
|
clean: true
|
||||||
displayName: 'checkout sonic-mgmt repo'
|
displayName: 'checkout sonic-mgmt repo'
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
sudo rm -rf ../target
|
||||||
|
displayName: "Cleanup"
|
||||||
|
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
inputs:
|
inputs:
|
||||||
artifact: sonic-buildimage.vs
|
artifact: sonic-buildimage.vs
|
||||||
|
@ -98,6 +98,11 @@ stages:
|
|||||||
submodules: recursive
|
submodules: recursive
|
||||||
displayName: 'Checkout code'
|
displayName: 'Checkout code'
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
sudo rm -rf ../target
|
||||||
|
sudo rm -rf ../*.deb
|
||||||
|
displayName: "Cleanup"
|
||||||
|
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
inputs:
|
inputs:
|
||||||
source: specific
|
source: specific
|
||||||
|
Loading…
Reference in New Issue
Block a user