Commit fee147d7 authored by Michel Dänzer's avatar Michel Dänzer Committed by Michel Dänzer
Browse files

gitlab-ci: Retry jobs after runner system failures

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.

Inspired by

Reviewed-by: Emma Anholt's avatarEric Anholt <>
parent b5ef99f2
...@@ -30,11 +30,20 @@ stages: ...@@ -30,11 +30,20 @@ stages:
- docker-image - docker-image
- build-and-test - build-and-test
# Retry jobs after runner system failures
.retry: &retry
max: 2
- runner_system_failure
debian-testing: debian-testing:
extends: .debian@container-ifnot-exists extends: .debian@container-ifnot-exists
stage: docker-image stage: docker-image
<<: *retry
.common-build-and-test: .common-build-and-test:
<<: *retry
stage: build-and-test stage: build-and-test
artifacts: artifacts:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment