Skip to content

Commit 985338a

Browse files
xumiaqiluo-msft
authored andcommitted
[ci]: Cleanup the workspace (sonic-net#2142)
* Cleanup the workspace. In some of the test cases, it is run as root, left some of the file cannot be removed during the checkout step.
1 parent 78a3bff commit 985338a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.azure-pipelines/test-docker-sonic-vs-template.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
pool: sonic-common
1515

1616
steps:
17+
- script: |
18+
ls -A1 | xargs -I{} sudo rm -rf {}
19+
displayName: "Clean workspace"
20+
- checkout: self
1721
- task: DownloadPipelineArtifact@2
1822
inputs:
1923
artifact: docker-sonic-vs

0 commit comments

Comments
 (0)