aboutsummaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2016-02-12 17:00:30 +0100
committerJörgen Karlsson <jorgen.w.karlsson@ericsson.com>2016-02-12 16:37:14 +0000
commit46e71d8746d1dff05f5806bde0139b987cdd97e5 (patch)
tree548421a4ba9494bb8ef3ee6799677deb8e4e7700 /ci
parent95cdd0ea41e3892422de92f13fac39871585706e (diff)
Add more debug to image build
Change-Id: Icfbed0433cb9cfb6f8f479fc69699d08ad49602b Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com> (cherry picked from commit 9de7358215ca6e3f0b394bacdd97f1e2b119b4b4)
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