aboutsummaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2016-02-12 17:00:30 +0100
committerJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2016-02-12 17:04:00 +0100
commit9de7358215ca6e3f0b394bacdd97f1e2b119b4b4 (patch)
treeb65b684a7e31d1423028808798c7d39ded888c66 /ci
parent702eebbf78b29fb9046436dd71575b4f210f4731 (diff)
Add more debug to image build
Change-Id: Icfbed0433cb9cfb6f8f479fc69699d08ad49602b Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/yardstick-verify6
1 files changed, 5 insertions, 1 deletions
diff --git a/ci/yardstick-verify b/ci/yardstick-verify
index 97bcacb17..630fed5f5 100755
--- a/ci/yardstick-verify
+++ b/ci/yardstick-verify
@@ -123,7 +123,11 @@ build_yardstick_image()
echo
echo "========== Build yardstick cloud image =========="
- sudo $(which yardstick-img-modify) $(pwd)/tools/ubuntu-server-cloudimg-modify.sh
+ local cmd="sudo $(which yardstick-img-modify) $(pwd)/tools/ubuntu-server-cloudimg-modify.sh"
+
+ # Build the image. Retry once if the build fails.
+ $cmd || $cmd
+
if [ ! -f $QCOW_IMAGE ]; then
echo "Failed building QCOW image"
exit 1