From: David Galloway Date: Tue, 5 Dec 2017 21:44:32 +0000 (-0500) Subject: sepia-fog-images: Build workspace for failure too X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d484eb4fa437fe10742fa95aa6738ee51ed85ff7;p=ceph-build.git sepia-fog-images: Build workspace for failure too Signed-off-by: David Galloway --- diff --git a/sepia-fog-images/build/failure b/sepia-fog-images/build/failure index 403aa229..bfa8e70d 100755 --- a/sepia-fog-images/build/failure +++ b/sepia-fog-images/build/failure @@ -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