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