summaryrefslogtreecommitdiffstats
path: root/ci/yardstick-verify
diff options
context:
space:
mode:
Diffstat (limited to 'ci/yardstick-verify')
-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