gitlab-ci: Automatically retry jobs after runner system failure
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 26 Mar 2019 17:39:41 +0000 (18:39 +0100)
committerMichel Dänzer <michel@daenzer.net>
Wed, 27 Mar 2019 09:05:43 +0000 (10:05 +0100)
Up to twice, for a total of 3 attempts maximum.

This will hopefully avoid spurious CI pipeline failures due to
intermittent GitLab/docker infrastructure issues.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
.gitlab-ci.yml

index 5e15f1e2f943e10389c77f3569c55b72579df7a3..87968b61328f94ee74c02904be6372c22baacb3d 100644 (file)
@@ -31,6 +31,10 @@ stages:
     - master
     - merge_requests
     - /^ci([-/].*)?$/
+  retry:
+    max: 2
+    when:
+      - runner_system_failure
 
 
 # CONTAINERS