Skip to content

Commit 158371d

Browse files
authored
[Ci] clean up the old artifacts in the agent before downloading the new artifacts (sonic-net#12391)
Ci] clean up the old artifacts in the agent before downloading the new artifacts
1 parent 078608e commit 158371d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.azure-pipelines/run-test-template.yml

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ steps:
2727
clean: true
2828
displayName: 'checkout sonic-mgmt repo'
2929

30+
- script: |
31+
sudo rm -rf ../target
32+
displayName: "Cleanup"
33+
3034
- task: DownloadPipelineArtifact@2
3135
inputs:
3236
artifact: sonic-buildimage.vs

azure-pipelines.yml

+5
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ stages:
9898
submodules: recursive
9999
displayName: 'Checkout code'
100100

101+
- script: |
102+
sudo rm -rf ../target
103+
sudo rm -rf ../*.deb
104+
displayName: "Cleanup"
105+
101106
- task: DownloadPipelineArtifact@2
102107
inputs:
103108
source: specific

0 commit comments

Comments
 (0)