.gitlab-ci.yml: Set interuptable: true
authorAndrew Bartlett <abartlet@samba.org>
Thu, 10 Sep 2020 22:47:25 +0000 (10:47 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 1 Oct 2020 01:18:38 +0000 (01:18 +0000)
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>
.gitlab-ci.yml

index 20fd9f56a502c356f94982e6bec1efa4afbf3640..4ae83acf2a5310363c60b3e44807dac4ac40de1e 100644 (file)
@@ -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}