From ac1c2664a4dee222bfb57a08ac378f2f1a0d3663 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 27 Jun 2017 18:56:59 +0200 Subject: reproducible_lede|openwrt: allow only one build at the same time Use build-blocker to block each other so only one job is run. Signed-off-by: Holger Levsen --- job-cfg/reproducible.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/job-cfg/reproducible.yaml b/job-cfg/reproducible.yaml index 4f9f897f..fe181b22 100644 --- a/job-cfg/reproducible.yaml +++ b/job-cfg/reproducible.yaml @@ -185,7 +185,7 @@ - defaults: <<: *DEFAULTS - name: reproducible_other_projects_artifacts + name: reproducible_other_projects_artifacts_blocked publishers: - logparser: *logparser-extra - archive: @@ -195,6 +195,10 @@ - email: *email - trigger: project: '{my_trigger}' + - build-blocker: + use-build-blocker: true + blocking-jobs: + - '{my_blocker}' - job-template: defaults: reproducible @@ -237,8 +241,8 @@ name: '{name}_{otherproject_triggering}' - job-template: - defaults: reproducible_other_projects_artifacts - name: '{name}_{otherproject_artifacts}' + defaults: reproducible_other_projects_artifacts_blocked + name: '{name}_{otherproject_artifacts_blocked}' - job-template: defaults: reproducible_builder_trigger @@ -590,8 +594,8 @@ my_hname: '' my_naginator_regex: 'Caused by: hudson.plugins.git.GitException: Command "git fetch' - - '{name}_{otherproject_artifacts}': - otherproject_artifacts: + - '{name}_{otherproject_artifacts_blocked}': + otherproject_artifacts_blocked: - 'lede-target-ar71xx': my_timed: '42 21 * * 4' my_lede_config: 'CONFIG_TARGET_ar71xx=y' @@ -613,6 +617,7 @@ my_trigger: '' my_hname: '' my_recipients: 'jenkins+reproducible-builds qa-jenkins-scm@lists.alioth.debian.org lynxis@fe80.eu' + my_blocker: '^reproducible_(lede|openwrt).*' - '{name}_{otherproject_triggering}': otherproject_triggering: -- cgit v1.2.3-70-g09d2