[Qa-jenkins-scm] [jenkins.debian.net] 01/03: rebootstrap: move or1k jobs to profitbricks4 node

Holger Levsen holger at moszumanska.debian.org
Tue Sep 1 14:16:11 UTC 2015


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 031bcbe5e9ff856d79f4b1154280d4381401ee1f
Author: Helmut Grohne <helmut at subdivi.de>
Date:   Sun Aug 30 20:57:13 2015 +0200

    rebootstrap: move or1k jobs to profitbricks4 node
    
     * Set node attribute.
     * Prepend reproducible_master_wrapper.sh to the shell command and rely
       on it ignoring the arguments. Another script shall reconstruct the
        invocation from the job name.
---
 job-cfg/rebootstrap.yaml.py | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/job-cfg/rebootstrap.yaml.py b/job-cfg/rebootstrap.yaml.py
index 162beb8..da3bae3 100755
--- a/job-cfg/rebootstrap.yaml.py
+++ b/job-cfg/rebootstrap.yaml.py
@@ -35,6 +35,11 @@ architectures += mono_architectures
 gcc_versions = ("5",)
 debbindiff_gcc_versions = ("5",)
 
+def get_node(arch):
+    if arch == "or1k":
+        return "profitbricks4"
+    return ""
+
 print("""
 - defaults:
     name: rebootstrap
@@ -73,7 +78,7 @@ print("""
           branches:
             - '{my_branchname}'
     builders:
-      - shell: 'export LC_ALL=C ; /srv/jenkins/bin/chroot-run.sh sid minimal ./bootstrap.sh HOST_ARCH={my_arch} {my_params}'
+      - shell: '{my_wrapper} LC_ALL=C /srv/jenkins/bin/chroot-run.sh sid minimal ./bootstrap.sh HOST_ARCH={my_arch} {my_params}'
     publishers:
       - logparser:
           parse-rules: '/srv/jenkins/logparse/rebootstrap.rules'
@@ -83,6 +88,7 @@ print("""
           recipients: 'jenkins+debian-bootstrap helmutg at debian.org'
     triggers:
       - pollscm: '*/6 * * * *'
+    node: '{my_node}'
 """)
 
 for arch in sorted(architectures):
@@ -123,7 +129,8 @@ for arch in sorted(architectures):
             my_arch: '%(arch)s'
             my_params: 'GCC_VER=%(gccver)s ENABLE_MULTILIB=%(multilib_value)s ENABLE_MULTIARCH_GCC=%(multiarch_gcc_value)s ENABLE_DEBBINDIFF=%(debbindiff_value)s'
             my_description: 'Verify bootstrappability of Debian using gcc-%(gccver)s%(nobiarch_comment)s for %(arch)s%(supported_comment)s%(debbindiff_comment)s'
-            my_branchname: 'jenkins_%(suffix)s'""" %
+            my_branchname: 'jenkins_%(suffix)s'
+            my_node: '%(node)s'""" %
                 dict(arch=arch,
                      suffix=arch + "_gcc" + gccver.replace(".", "") + ("_nobiarch" if nobiarch else "") + ("_supported" if supported else "") + ("_debbindiff" if debbindiff else ""),
                      gccver=gccver,
@@ -132,4 +139,7 @@ for arch in sorted(architectures):
                      multiarch_gcc_value="no" if supported else "yes",
                      supported_comment=" using the supported method" if supported else "",
                      debbindiff_value="yes" if debbindiff else "no",
-                     debbindiff_comment=" showing debbindiffs" if debbindiff else ""))
+                     debbindiff_comment=" showing debbindiffs" if debbindiff else "",
+                     node=get_node(arch)))
+                    if get_node(arch):
+                        print("            my_wrapper: '/srv/jenkins/bin/reproducible_master_wrapper.sh'")

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