gitlab-ci: auto-cancel CI runs when a newer commit is pushed to the same branch
authorEric Engestrom <eric.engestrom@intel.com>
Tue, 12 Nov 2019 23:42:21 +0000 (23:42 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Thu, 14 Nov 2019 17:32:31 +0000 (17:32 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
.gitlab-ci.yml
.gitlab-ci/lava-gitlab-ci.yml

index 77219842df88b86bdb83f8d9abf296de5126c481..895017a6873727a1dd3d1e37f80a210a12cd7a82 100644 (file)
@@ -69,6 +69,8 @@ stages:
     max: 2
     when:
       - runner_system_failure
+  # Cancel CI run if a newer commit is pushed to the same branch
+  interruptible: true
 
 .ci-deqp-artifacts:
   artifacts:
index b95dbea964abd149a4037ca72f5a9139fe2a39cb..e9b324b60c46fded1afa09a4ab44c5fa02127287 100644 (file)
@@ -17,6 +17,8 @@ include:
     max: 2
     when:
       - runner_system_failure
+  # Cancel CI run if a newer commit is pushed to the same branch
+  interruptible: true
 
 # Build Docker image with deqp, the rootfs and the build deps for Mesa
 .lava-container: