From 6140ed3d2c5409bcdb5c0879411690ef222b086c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Tue, 26 Mar 2019 18:39:41 +0100 Subject: [PATCH] gitlab-ci: Automatically retry jobs after runner system failure 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 --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5e15f1e..87968b6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,6 +31,10 @@ stages: - master - merge_requests - /^ci([-/].*)?$/ + retry: + max: 2 + when: + - runner_system_failure # CONTAINERS -- 2.7.4