From: Emanuel Petr Date: Mon, 17 Jun 2024 18:06:13 +0000 (+0200) Subject: Retry job in case of AWS Spot Instance interruption X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=011420406eec2274725f5b938becd79d1adb4081;p=thirdparty%2Fbind9.git Retry job in case of AWS Spot Instance interruption (cherry picked from commit bbcce1bfc1243d74ff0ec736e7d370c4cb8591f2) --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ee186c9bd1d..9cc03082e5c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,6 +39,13 @@ variables: default: interruptible: true + # AWS can interrupt the spot instance anytime, so let's retry the job when + # the interruption event happens to avoid a pipeline failure. + retry: + max: 2 + when: + - runner_system_failure + stages: - precheck - build