From d484eb4fa437fe10742fa95aa6738ee51ed85ff7 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Tue, 5 Dec 2017 16:44:32 -0500 Subject: [PATCH] sepia-fog-images: Build workspace for failure too Signed-off-by: David Galloway --- sepia-fog-images/build/failure | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 -- 2.47.3