From 7551c71c2aa5717e89d1de8c8d68829d8d4ad288 Mon Sep 17 00:00:00 2001 From: Andrii Ostapenko Date: Wed, 7 Jul 2021 10:14:38 -0600 Subject: [PATCH] Add retry on image build Change-Id: I2b0b7eb735963102310edcdcced58d182c0c9be3 Signed-off-by: Andrii Ostapenko --- tools/deployment/21_systemwide_executable.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/deployment/21_systemwide_executable.sh b/tools/deployment/21_systemwide_executable.sh index de2f52674..841d148b0 100755 --- a/tools/deployment/21_systemwide_executable.sh +++ b/tools/deployment/21_systemwide_executable.sh @@ -20,8 +20,13 @@ export HTTP_PROXY=${HTTP_PROXY:-${http_proxy}} export NO_PROXY=${NO_PROXY:-${no_proxy}} export PROXY=${PROXY:-${http_proxy}} +set +e echo "Build airshipctl docker images" -sudo -E make images +for i in {1..3}; do + sudo -E make images && break +done +[ "$?" -ne 0 ] && exit 1 +set -e echo "Copy airshipctl from docker image" DOCKER_IMAGE_TAG=$(sudo -E make print-docker-image-tag)