summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-06-27 18:56:59 +0200
committerHolger Levsen <holger@layer-acht.org>2017-06-27 18:59:27 +0200
commitac1c2664a4dee222bfb57a08ac378f2f1a0d3663 (patch)
treef331e1acc825b3c2bc31dfce302cf406a1059907
parent89f0204854ad10ca6b505ab4a5bf04e59875058a (diff)
downloadjenkins.debian.net-ac1c2664a4dee222bfb57a08ac378f2f1a0d3663.tar.xz
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 <holger@layer-acht.org>
-rw-r--r--job-cfg/reproducible.yaml15
1 files 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: