2021-02-05 17:38:25 -06:00
|
|
|
steps:
|
|
|
|
- script: |
|
2021-02-08 10:06:36 -06:00
|
|
|
if sudo [ -f /var/run/march/docker.pid ] ; then
|
|
|
|
pid=`sudo cat /var/run/march/docker.pid` ; sudo kill $pid
|
|
|
|
fi
|
|
|
|
sudo rm -f /var/run/march/docker.pid
|
|
|
|
sudo rm -rf /data/march/docker
|
2021-02-06 18:58:15 -06:00
|
|
|
|
|
|
|
# clean native docker build
|
|
|
|
if sudo [ -f dockerfs/var/run/docker.pid ] ; then
|
|
|
|
pid=`sudo cat dockerfs/var/run/docker.pid` ; sudo kill $pid
|
|
|
|
fi
|
2021-02-08 10:06:36 -06:00
|
|
|
sudo rm -rf dockerfs
|
|
|
|
sudo rm -rf fsroot
|
2021-02-11 01:35:22 -06:00
|
|
|
username=$(id -un)
|
|
|
|
sudo chown -R ${username}.${username} .
|
2021-02-05 17:38:25 -06:00
|
|
|
displayName: "Clean Workspace"
|