]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Retry job in case of AWS Spot Instance interruption
authorEmanuel Petr <manu@isc.org>
Mon, 17 Jun 2024 18:06:13 +0000 (20:06 +0200)
committerNicki Křížek <nicki@isc.org>
Mon, 29 Jul 2024 13:26:58 +0000 (13:26 +0000)
(cherry picked from commit bbcce1bfc1243d74ff0ec736e7d370c4cb8591f2)

.gitlab-ci.yml

index 1af3e0fadfdfafdad8bc34b155888cd87787a718..8136097a5accf5a498f22ac815d2ddd73f16553a 100644 (file)
@@ -55,6 +55,13 @@ default:
   # See: https://docs.gitlab.com/ee/ci/pipelines/settings.html#auto-cancel-redundant-pipelines
   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