From e3f7d2f0467e513e10f7c4e796880e0be77142de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Wed, 29 Sep 2021 16:03:38 +0200 Subject: [PATCH] ci: retry on image pull error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Try to avoid the following: ``` error pulling image configuration: received unexpected HTTP status: 500 Internal Server Error ``` Signed-off-by: Sébastien Han --- tests/scripts/github-action-helper.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/scripts/github-action-helper.sh b/tests/scripts/github-action-helper.sh index 0f0dcb598..0d884b345 100755 --- a/tests/scripts/github-action-helper.sh +++ b/tests/scripts/github-action-helper.sh @@ -23,6 +23,7 @@ set -xe NETWORK_ERROR="connection reset by peer" SERVICE_UNAVAILABLE_ERROR="Service Unavailable" INTERNAL_ERROR="INTERNAL_ERROR" +INTERNAL_SERVER_ERROR="500 Internal Server Error" ############# # FUNCTIONS # @@ -109,6 +110,10 @@ function build_rook() { echo "network failure occurred, retrying..." continue ;; + *"$INTERNAL_SERVER_ERROR"*) + echo "network failure occurred, retrying..." + continue + ;; *) # valid failure exit 1