summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <mdaenzer@redhat.com>2019-12-23 10:03:20 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2019-12-23 22:01:59 +0000
commit1e9c63beddb3010bb1f6eb96679410ca0aca037e (patch)
tree87ba729242ce30dace89c529235b6117f63696ab
parent456dff1bf890459840718339279dcb84d36531eb (diff)
gitlab-ci: Turn .retry YAML anchor into .ci-run-policy template
To match Mesa.
-rw-r--r--.gitlab-ci.yml9
1 files changed, 5 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8a4af4297..6dc7de8bf 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,19 +31,20 @@ stages:
- build-and-test
# Retry jobs after runner system failures
-.retry: &retry
+.ci-run-policy:
retry:
max: 2
when:
- runner_system_failure
debian-testing:
- extends: .debian@container-ifnot-exists
+ extends:
+ - .debian@container-ifnot-exists
+ - .ci-run-policy
stage: docker-image
- <<: *retry
.common-build-and-test:
- <<: *retry
+ extends: .ci-run-policy
stage: build-and-test
image: $IMAGE_LOCAL
artifacts: