ci: Add a simple auto-retry policy
authorJordan Petridis <jordan@centricular.com>
Wed, 15 Feb 2023 19:38:24 +0000 (21:38 +0200)
committerJordan Petridis <jordan@centricular.com>
Wed, 15 Feb 2023 19:38:24 +0000 (21:38 +0200)
.gitlab-ci.yml

index 493411ac3ce8a6e65b8fd1268d5f9a0392e93e05..ae5c3d5aaa3414de68eeea26339b1897d2a42742 100644 (file)
@@ -34,6 +34,13 @@ workflow:
     - if: $CI_COMMIT_BRANCH
 
 default:
+  retry:
+    max: 2
+    when:
+      - 'runner_system_failure'
+      - 'stuck_or_timeout_failure'
+      - 'scheduler_failure'
+      - 'api_failure'
   interruptible: true
 
 style-check-diff: