blob: f92e0d2366fd5407d577df07c46d1291e97488f6 [file] [log] [blame]
Anthony Younga4e6d132011-11-10 11:55:29 -08001#!/bin/bash
2# This script is not yet for general consumption.
3
4set -o errexit
5
6if [ ! "$FORCE" = 1 ]; then
7 echo "FORCE not set to 1. Make sure this is something you really want to do. Exiting."
8 exit 1
9fi
10
11exit
12virsh list | cut -d " " -f1 | grep -v "-" | egrep -e "[0-9]" | xargs -n 1 virsh destroy || true
13virsh net-list | grep active | cut -d " " -f1 | xargs -n 1 virsh net-destroy || true
14killall dnsmasq
15rm -rf jobs
16rm /var/lib/jenkins/jobs
17git checkout -f
18git fetch
19git merge origin/jenkins
20./build_jenkins.sh
21