2021-03-12 02:44:09 -06:00
|
|
|
steps:
|
|
|
|
- script: |
|
2023-02-20 04:16:25 -06:00
|
|
|
set -x
|
|
|
|
# kill daemon process
|
|
|
|
ps $(cat /tmp/azp_daemon_kill_docker_pid)
|
|
|
|
sudo kill $(cat /tmp/azp_daemon_kill_docker_pid)
|
|
|
|
rm /tmp/azp_daemon_kill_docker_pid
|
|
|
|
|
2021-03-12 02:44:09 -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
|
|
|
|
|
|
|
|
# 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-04-21 21:11:11 -05:00
|
|
|
sudo rm -rf $(ls -A1)
|
2023-02-20 04:16:25 -06:00
|
|
|
condition: always()
|
2021-03-12 02:44:09 -06:00
|
|
|
displayName: "Clean Workspace"
|