[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Fdroid: prevent the two fdroid jobs from running together by using the Build Blocker Plugin

Holger Levsen holger at layer-acht.org
Tue May 23 15:37:51 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 0af7e6310b1f1058e824d6372444c685f5e3528a
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue May 23 17:37:46 2017 +0200

    reproducible Fdroid: prevent the two fdroid jobs from running together by using the Build Blocker Plugin
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 INSTALL                   |  1 +
 job-cfg/reproducible.yaml | 70 ++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 70 insertions(+), 1 deletion(-)

diff --git a/INSTALL b/INSTALL
index 8f5ee09..bbd0884 100644
--- a/INSTALL
+++ b/INSTALL
@@ -43,6 +43,7 @@ We would prefer to run a jenkins package from jessie-backports.
 * Console Column Plugin
 * Priority Sorter Plugin
 * Throttle Concurrent Builds Plugin
+* Build Blocker Plugin
 * Naginator Plugin
 * Next Executions
 * Parameterized Trigger plugin
diff --git a/job-cfg/reproducible.yaml b/job-cfg/reproducible.yaml
index 1df3e73..f7b6198 100644
--- a/job-cfg/reproducible.yaml
+++ b/job-cfg/reproducible.yaml
@@ -92,6 +92,22 @@
 
 - defaults:
     <<: *DEFAULTS
+    name: reproducible_other_projects_blocked
+    publishers:
+      - logparser: &logparser-extra
+          <<: *logparser
+          parse-rules: '/srv/jenkins/logparse/reproducible-extra.rules'
+      - email: *email
+    properties:
+      - sidebar: *sb1
+      - sidebar: *sb2
+      - sidebar: *sb3
+      - build-blocker:
+          use-build-blocker: true
+          blocking-jobs: '{my_blocker}
+
+- defaults:
+    <<: *DEFAULTS
     name: reproducible_other_projects_git
     triggers:
       - timed: '{my_timed}'
@@ -111,6 +127,32 @@
 
 - defaults:
     <<: *DEFAULTS
+    name: reproducible_other_projects_git_blocked
+    triggers:
+      - timed: '{my_timed}'
+      - pollscm:
+          cron: '*/6 * * * *'
+    publishers:
+      - logparser:
+          <<: *logparser
+          parse-rules: '{my_parse_rules}'
+      - email: *email
+      - naginator: *naginator
+    scm:
+      - git:
+          url: '{my_gitrepo}'
+          branches:
+            - '{my_gitbranches}'
+    properties:
+      - sidebar: *sb1
+      - sidebar: *sb2
+      - sidebar: *sb3
+      - build-blocker:
+          use-build-blocker: true
+          blocking-jobs: '{my_blocker}
+
+- defaults:
+    <<: *DEFAULTS
     name: reproducible_other_projects_git_junit_exports
     triggers:
       - timed: '{my_timed}'
@@ -174,10 +216,18 @@
     name: '{name}_{otherproject}'
 
 - job-template:
+    defaults: reproducible_other_projects_blocked
+    name: '{name}_{otherproject_blocked}'
+
+- job-template:
     defaults: reproducible_other_projects_git
     name: '{name}_{otherproject_git}'
 
 - job-template:
+    defaults: reproducible_other_projects_git_blocked
+    name: '{name}_{otherproject_git_blocked}'
+
+- job-template:
     defaults: reproducible_other_projects_git_junit_exports
     name: '{name}_{otherproject_git_junit_exports}'
 
@@ -517,13 +567,31 @@
                     my_timed: '42 23 1 1 *'
                     my_hname: 'profitbricks4'
                     my_disabled: true
+            my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh'
+            my_hname: ''
+
+        - '{name}_{otherproject_blocked}':
+            otherproject_blocked:
                 - 'setup_fdroid_build_environment':
                     my_description: 'Setup a build environment for F-Droid.'
                     my_timed: '42 0 * * 1'
                     my_hname: 'profitbricks7'
                     my_recipients: 'jenkins+reproducible-builds qa-jenkins-scm at lists.alioth.debian.org hans at guardianproject.info michael.poehn at fsfe.org'
+                    my_blocker: '^reproducible.*fdroid.*'
             my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh'
-            my_hname: ''
+
+        - '{name}_{otherproject_git_blocked}':
+            otherproject_git_blocked:
+                - 'fdroid_build_apps':
+                    my_description: 'Build all the latest apps for F-Droid.'
+                    my_timed: '42 7 * * 1'
+                    my_hname: 'profitbricks7'
+                    my_gitrepo: 'https://gitlab.com/eighthave/fdroidserver-for-jenkins.debian.net.git'
+                    my_recipients: 'jenkins+reproducible-builds qa-jenkins-scm at lists.alioth.debian.org hans at guardianproject.info michael.poehn at fsfe.org'
+                    my_blocker: '^reproducible.*fdroid.*'
+            my_gitbranches: 'master'
+            my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh'
+            my_parse_rules: '/srv/jenkins/logparse/reproducible-extra.rules'
 
         - '{name}_{otherproject_git}':
             otherproject_git:

-- 
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