ci: Cancel running jobs

No need to have parallel pipelines when updating a job.

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/619>
This commit is contained in:
Guido Günther
2024-03-10 10:37:59 +01:00
parent cc18ec727c
commit ff79647f05

View File

@ -1,5 +1,19 @@
image: debian:bookworm
default:
# Protect CI infra from rogue jobs
timeout: 15 minutes
# Allow jobs to be caneled on new commits
interruptible: true
# Retry on infra hickups automatically
retry:
max: 1
when:
- api_failure
- runner_system_failure
- scheduler_failure
- stuck_or_timeout_failure
stages:
- build
- test