tweaks to the hacky clean script
This commit is contained in:
parent
1277eab04d
commit
305e3f5524
1 changed files with 5 additions and 5 deletions
|
@ -3,19 +3,19 @@
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
if [ ! "$FORCE" = 1 ]; then
|
if [ ! "$FORCE" = "yes" ]; then
|
||||||
echo "FORCE not set to 1. Make sure this is something you really want to do. Exiting."
|
echo "FORCE not set to 1. Make sure this is something you really want to do. Exiting."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit
|
|
||||||
virsh list | cut -d " " -f1 | grep -v "-" | egrep -e "[0-9]" | xargs -n 1 virsh destroy || true
|
virsh list | cut -d " " -f1 | grep -v "-" | egrep -e "[0-9]" | xargs -n 1 virsh destroy || true
|
||||||
virsh net-list | grep active | cut -d " " -f1 | xargs -n 1 virsh net-destroy || true
|
virsh net-list | grep active | cut -d " " -f1 | xargs -n 1 virsh net-destroy || true
|
||||||
killall dnsmasq
|
killall dnsmasq || true
|
||||||
|
if [ "$CLEAN" = "yes" ]; then
|
||||||
rm -rf jobs
|
rm -rf jobs
|
||||||
|
fi
|
||||||
rm /var/lib/jenkins/jobs
|
rm /var/lib/jenkins/jobs
|
||||||
git checkout -f
|
git checkout -f
|
||||||
git fetch
|
git fetch
|
||||||
git merge origin/jenkins
|
git merge origin/jenkins
|
||||||
./build_jenkins.sh
|
./build_jenkins.sh
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue