From 18a1bbc24552ca0466500b6121818292e645f41b Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 27 Jul 2017 13:20:08 +0200 Subject: [PATCH] Abort builds on update 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 --- ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml | 1 + ceph-docker-prs/config/definitions/ceph-docker-prs.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml b/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml index acdd45af..b0389303 100644 --- a/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml +++ b/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml @@ -71,6 +71,7 @@ triggers: - github-pull-request: + cancel-builds-on-update: true allow-whitelist-orgs-as-admins: true org-list: - ceph diff --git a/ceph-docker-prs/config/definitions/ceph-docker-prs.yml b/ceph-docker-prs/config/definitions/ceph-docker-prs.yml index b8644dd8..ad6916f1 100644 --- a/ceph-docker-prs/config/definitions/ceph-docker-prs.yml +++ b/ceph-docker-prs/config/definitions/ceph-docker-prs.yml @@ -40,6 +40,7 @@ triggers: - github-pull-request: + cancel-builds-on-update: true allow-whitelist-orgs-as-admins: true org-list: - ceph -- 2.39.5