aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.d
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2023-02-23 20:13:43 +0100
committerThomas Huth <thuth@redhat.com>2023-02-27 09:23:21 +0100
commite97a9b8ce6aaefcd2523010946609245b8a1bd8c (patch)
treed1a3a8d4d3e8ccd0c0ec7a6250259d230922ca9e /.gitlab-ci.d
parenteda2321d7f807d3cc5a98aea34bbab82e2e8a7e6 (diff)
downloadqemu-e97a9b8ce6aaefcd2523010946609245b8a1bd8c.zip
qemu-e97a9b8ce6aaefcd2523010946609245b8a1bd8c.tar.gz
qemu-e97a9b8ce6aaefcd2523010946609245b8a1bd8c.tar.bz2
gitlab-ci.d/base: Mark jobs as interruptible by default
When handling pull requests in the staging branch, it often happens that one of the job fails due to a problem, so that the pull request can't be merged. Peter/Richard/Stefan then informs the sender of the pull request and continues by pushing the next pending pull request from another subsystem maintainer. Now the problem is that there might still be lots of other running jobs in the pipeline of the first pull request, eating up precious CI minutes though the pipeline is not needed anymore. We can avoid this by marking the jobs as "interruptible". With this setting, the jobs from previous pipelines are automatically terminated when pushing a new one. If someone does not like this auto- matic termination, it can still be disabled in the settings of the repository. See this URL for details: https://docs.gitlab.com/ee/ci/yaml/index.html#interruptible Message-Id: <20230223191343.1064274-1-thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to '.gitlab-ci.d')
-rw-r--r--.gitlab-ci.d/base.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitlab-ci.d/base.yml b/.gitlab-ci.d/base.yml
index 50fb59e..0274228 100644
--- a/.gitlab-ci.d/base.yml
+++ b/.gitlab-ci.d/base.yml
@@ -11,6 +11,8 @@
# and show the duration of each line.
FF_SCRIPT_SECTIONS: 1
+ interruptible: true
+
rules:
#############################################################
# Stage 1: exclude scenarios where we definitely don't