gitlab-ci: Mark jobs as interruptible
Allowing redundant pipelines to be automatically cancelled.
This commit is contained in:
parent
1e9c63bedd
commit
b1ee4036bf
|
@ -30,12 +30,14 @@ stages:
|
||||||
- docker-image
|
- docker-image
|
||||||
- build-and-test
|
- build-and-test
|
||||||
|
|
||||||
# Retry jobs after runner system failures
|
|
||||||
.ci-run-policy:
|
.ci-run-policy:
|
||||||
|
# Retry jobs after runner system failures
|
||||||
retry:
|
retry:
|
||||||
max: 2
|
max: 2
|
||||||
when:
|
when:
|
||||||
- runner_system_failure
|
- runner_system_failure
|
||||||
|
# Cancel CI run if a newer commit is pushed to the same branch
|
||||||
|
interruptible: true
|
||||||
|
|
||||||
debian-testing:
|
debian-testing:
|
||||||
extends:
|
extends:
|
||||||
|
|
Loading…
Reference in New Issue