[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible_lede|openwrt: allow only one build at the same time

Holger Levsen holger at layer-acht.org
Tue Jun 27 17:01:00 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit ac1c2664a4dee222bfb57a08ac378f2f1a0d3663
Author: Alexander Couzens <lynxis at fe80.eu>
Date:   Tue Jun 27 18:56:59 2017 +0200

    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 at layer-acht.org>
---
 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 4f9f897..fe181b2 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 at lists.alioth.debian.org lynxis at fe80.eu'
+            my_blocker: '^reproducible_(lede|openwrt).*'
 
         - '{name}_{otherproject_triggering}':
             otherproject_triggering:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list