sonic-buildimage/.azure-pipelines/cleanup.yml
liushilongbuaa 23381e6d01
[ci]: Add yaml for azure pipeline official build (#6588)
**- Why I did it**
To support nightly build for master branch

**- How to verify it**
confirm from azure pipeline page.
2021-02-05 15:38:25 -08:00

13 lines
522 B
YAML

steps:
- script: |
sudo kill -9 `sudo cat /var/run/march/docker.pid` || true
sudo rm -f /var/run/march/docker.pid || true
sudo rm -rf fsroot || true
git clean -xfdf || true
git reset --hard || true
git submodule foreach --recursive 'git clean -xfdf || true' || true
git submodule foreach --recursive 'git reset --hard || true' || true
git submodule foreach --recursive 'git remote update || true' || true
git submodule update --init --recursive || true
displayName: "Clean Workspace"