From 158371de3864d3b8752162e5e1ba348e30fbd579 Mon Sep 17 00:00:00 2001 From: xumia <59720581+xumia@users.noreply.github.com> Date: Tue, 25 Oct 2022 15:45:01 +0800 Subject: [PATCH] [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 --- .azure-pipelines/run-test-template.yml | 4 ++++ azure-pipelines.yml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/.azure-pipelines/run-test-template.yml b/.azure-pipelines/run-test-template.yml index 5c848ca1d4..88404cabf4 100644 --- a/.azure-pipelines/run-test-template.yml +++ b/.azure-pipelines/run-test-template.yml @@ -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 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 15554b8bc7..de84c66e8d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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