summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2020-09-11 10:47:25 +1200
committerDouglas Bagnall <dbagnall@samba.org>2020-10-01 01:18:38 +0000
commit5edc004f95cfcf314dcd935cdf7d4141844f664a (patch)
tree20d5158c8d86ada5b190733e6347cd3db8ee01b9 /.gitlab-ci.yml
parent40511af091b6b3f138af930affab67865e33f81d (diff)
downloadsamba-5edc004f95cfcf314dcd935cdf7d4141844f664a.tar.gz
.gitlab-ci.yml: Set interuptable: true
This should reduce some CI costs, avoiding spending CPU time on jobs that are already out of date because a new branch has been pushed. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 20fd9f56a50..4ae83acf2a5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -52,6 +52,10 @@ include:
- 'bootstrap/.gitlab-ci.yml'
.shared_template:
+ # All Samba jobs are interruptible, this avoids burning CPU when a
+ # newer branch is pushed.
+ interruptible: true
+
variables:
AUTOBUILD_JOB_NAME: $CI_JOB_NAME
image: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-${SAMBA_CI_CONTAINER_IMAGE}:${SAMBA_CI_CONTAINER_TAG}