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

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
mesa/mesa@6140ed3dReviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
parent b5ef99f2
......@@ -30,11 +30,20 @@ stages:
- docker-image
- build-and-test
# Retry jobs after runner system failures
.retry: &retry
retry:
max: 2
when:
- runner_system_failure
debian-testing:
extends: .debian@container-ifnot-exists
stage: docker-image
<<: *retry
.common-build-and-test:
<<: *retry
stage: build-and-test
image: $IMAGE_LOCAL
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