]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
sepia-fog-images: Build workspace for failure too 927/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 5 Dec 2017 21:44:32 +0000 (16:44 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 5 Dec 2017 21:45:57 +0000 (16:45 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
sepia-fog-images/build/failure

index 403aa229d9978cfbd5a452113ddcb8fa1d10b8d8..bfa8e70dd4b310d857a8a16c52009500e26a3013 100755 (executable)
@@ -12,6 +12,22 @@ funPowerCycle () {
   fi
 }
 
+# Clone or update teuthology
+if [ ! -d teuthology ]; then
+  git clone https://github.com/ceph/teuthology
+  cd teuthology
+else
+  cd teuthology
+  git pull
+fi
+
+# Bootstrap teuthology
+./bootstrap
+
+cd $WORKSPACE
+
+source $WORKSPACE/teuthology/virtualenv/bin/activate
+
 allhosts=$(teuthology-lock --brief | grep "Locked to capture FOG image for Jenkins build $BUILD_NUMBER" | cut -d '.' -f1 | tr "\n" " ")
 # Set DHCP server back to FOG
 for machine in $allhosts; do