]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
Abort builds on update 804/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 27 Jul 2017 11:20:08 +0000 (13:20 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 27 Jul 2017 11:20:08 +0000 (13:20 +0200)
When a PR is updated, jobs that were launched by the previous PR are not
aborted. It can even happen that you update a PR several times in a
short time. So it's n*x jenkins slave locked until they end.

Adding `cancel-builds-on-update` to the jobs templates force the job to be
aborted to free a jenkins slave quicker.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml
ceph-docker-prs/config/definitions/ceph-docker-prs.yml

index acdd45af247440e71f8afec2ae476588644709fc..b0389303a18e7c3b4450c44543ad4b838a837330 100644 (file)
@@ -71,6 +71,7 @@
 
     triggers:
       - github-pull-request:
+          cancel-builds-on-update: true
           allow-whitelist-orgs-as-admins: true
           org-list:
             - ceph
index b8644dd88d3005ea1887bba8e9c01c466c5bb865..ad6916f128d43e68f567e8c94f32d9d94100a990 100644 (file)
@@ -40,6 +40,7 @@
 
     triggers:
       - github-pull-request:
+          cancel-builds-on-update: true
           allow-whitelist-orgs-as-admins: true
           org-list:
             - ceph