]> 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:54 +0000 (13:26 +0000)
(cherry picked from commit bbcce1bfc1243d74ff0ec736e7d370c4cb8591f2)

.gitlab-ci.yml

index 25541bcf43d474fdc08aa00a2205b7cc7efc0c6f..0779e094648ac124c22f6ddbe48b009f67409492 100644 (file)
@@ -62,6 +62,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:
   - autoconf
   - precheck