[Qa-jenkins-scm] [jenkins.debian.net] 02/02: changes to keep j-j-b >= 1.2.0 happy

Holger Levsen holger at moszumanska.debian.org
Thu Dec 10 16:09:02 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 574aa9b76ae022eac768edbad69bc2494288e9f4
Author: Philip Hands <phil at hands.com>
Date:   Thu Jun 25 08:38:30 2015 +0100

    changes to keep j-j-b >= 1.2.0 happy
---
 job-cfg/chroot-installation.yaml.py |  4 ++--
 job-cfg/d-i.yaml.py                 |  4 ++--
 job-cfg/g-i-installation.yaml       | 18 +++++++++---------
 job-cfg/lvc.yaml.py                 | 10 +++++-----
 job-cfg/piuparts.yaml               | 30 +++++++++++++++++++++++++++---
 job-cfg/rebootstrap.yaml.py         |  4 ++--
 job-cfg/reproducible.yaml           |  8 ++++----
 job-cfg/self.yaml                   |  8 ++++++--
 job-cfg/torbrowser-launcher.yaml    | 20 ++++++++++----------
 update_jdn.sh                       |  3 ++-
 10 files changed, 69 insertions(+), 40 deletions(-)

diff --git a/job-cfg/chroot-installation.yaml.py b/job-cfg/chroot-installation.yaml.py
index a3a655d..ebe43d5 100755
--- a/job-cfg/chroot-installation.yaml.py
+++ b/job-cfg/chroot-installation.yaml.py
@@ -188,8 +188,8 @@ print("""
           url: http://www.profitbricks.co.uk
           text: Sponsored by Profitbricks
           icon: /userContent/images/profitbricks-24x24.png
-      - priority:
-          job-prio: '{my_prio}'
+      - priority-sorter:
+          priority: '{my_prio}'
       - throttle:
           max-total: 6
           max-per-node: 6
diff --git a/job-cfg/d-i.yaml.py b/job-cfg/d-i.yaml.py
index 51b9906..5d17848 100755
--- a/job-cfg/d-i.yaml.py
+++ b/job-cfg/d-i.yaml.py
@@ -197,7 +197,7 @@ def publ(fmt=None,trigger=False,irc=None):
                        'fail-on-error': 'true'}}])
     p.append(publ_email(irc=irc))
     if fmt != None:
-        p.append({'archive': {'artifacts': fmt + '/**/*.*', 'latest_only': True}})
+        p.append({'archive': {'artifacts': fmt + '/**/*.*', 'latest-only': True}})
     return p
 
 
@@ -212,7 +212,7 @@ def prop(type='manual', priority=None):
                       'text': 'Sponsored by Profitbricks',
                       'icon': '/userContent/images/profitbricks-24x24.png'}}]
     if priority != None:
-        p.append( {'priority': {'job-prio': str(priority)}} )
+        p.append( {'priority-sorter': {'priority': str(priority)}} )
     return p
 
 
diff --git a/job-cfg/g-i-installation.yaml b/job-cfg/g-i-installation.yaml
index 5ddedab..2eeaf4c 100644
--- a/job-cfg/g-i-installation.yaml
+++ b/job-cfg/g-i-installation.yaml
@@ -28,11 +28,11 @@
           body: 'See $BUILD_URL and $BUILD_URL/console and $BUILD_URL/artifact/results/ if there are any.'
       - archive:
           artifacts: 'results/*.*, results/log/*, results/log/installer/*'
-          latest_only: false
-      - imagegallery:
-          title: '{my_title}'
-          includes: 'results/*.png'
-          image-width: 300
+          latest-only: false
+      - image-gallery:
+          - title: '{my_title}'
+            includes: 'results/*.png'
+            image-width: 300
     wrappers:
       - live-screenshot
       - timeout:
@@ -50,8 +50,8 @@
           url: http://www.profitbricks.co.uk
           text: Sponsored by Profitbricks
           icon: /userContent/images/profitbricks-24x24.png
-      - priority:
-          job-prio: '140'
+      - priority-sorter:
+          priority: '140'
       - throttle:
           max-total: 3
           max-per-node: 3
@@ -82,8 +82,8 @@
       - sidebar: *sb01
       - sidebar: *sb10
       - sidebar: *sb99
-      - priority:
-          job-prio: '175'
+      - priority-sorter:
+          priority: '175'
 
 - job-template:
     defaults: g-i-installation-maintenance
diff --git a/job-cfg/lvc.yaml.py b/job-cfg/lvc.yaml.py
index 8a29cdb..3195917 100755
--- a/job-cfg/lvc.yaml.py
+++ b/job-cfg/lvc.yaml.py
@@ -67,11 +67,11 @@ print("""
           recipients: 'qa-jenkins-scm at lists.alioth.debian.org'
       - archive:
           artifacts: '*.webm, {my_pngs}'
-          latest_only: false
-      - imagegallery:
-          title: '{my_title}'
-          includes: '{my_pngs}'
-          image-width: 300
+          latest-only: false
+      - image-gallery:
+          - title: '{my_title}'
+            includes: '{my_pngs}'
+            image-width: 300
     wrappers:
       - live-screenshot
     builders:
diff --git a/job-cfg/piuparts.yaml b/job-cfg/piuparts.yaml
index 1a1f360..16d5a3d 100644
--- a/job-cfg/piuparts.yaml
+++ b/job-cfg/piuparts.yaml
@@ -28,10 +28,21 @@
 
 - job-template:
     defaults: piuparts
+    name: '{name}_testsuite_wheezy'
+    publishers:
+      - email:
+          recipients: 'jenkins+debian-qa qa-jenkins-scm at lists.alioth.debian.org piuparts-devel at lists.alioth.debian.org'
+    builders:
+      - shell: '/srv/jenkins/bin/chroot-run.sh {my_distro} {my_shell}'
+
+- job-template:
+    defaults: piuparts
     name: '{name}_testsuite_jessie'
     publishers:
       - email:
           recipients: 'jenkins+debian-qa qa-jenkins-scm at lists.alioth.debian.org piuparts-devel at lists.alioth.debian.org'
+      - trigger:
+          project: '{my_trigger}'
     builders:
       - shell: '/srv/jenkins/bin/chroot-run.sh {my_distro} {my_shell}'
 
@@ -61,13 +72,25 @@
 
 - job-template:
     defaults: piuparts
+    name: '{name}_build_wheezy'
+    publishers:
+      - email:
+          recipients: 'jenkins+debian-qa qa-jenkins-scm at lists.alioth.debian.org piuparts-devel at lists.alioth.debian.org'
+      - archive:
+          artifacts: '*_*.dsc, *_*.tar.*, *_*_*.deb, *_*_*.changes'
+          latest-only: true
+    builders:
+      - shell: 'export ARTIFACTS=true ; /srv/jenkins/bin/chroot-run.sh {my_distro} {my_shell}'
+
+- job-template:
+    defaults: piuparts
     name: '{name}_build_jessie'
     publishers:
       - email:
           recipients: 'jenkins+debian-qa qa-jenkins-scm at lists.alioth.debian.org piuparts-devel at lists.alioth.debian.org'
       - archive:
           artifacts: '*_*.dsc, *_*.tar.*, *_*_*.deb, *_*_*.changes'
-          latest_only: true
+          latest-only: true
     builders:
       - shell: 'export ARTIFACTS=true ; /srv/jenkins/bin/chroot-run.sh {my_distro} {my_shell}'
 
@@ -81,7 +104,7 @@
           project: '{my_trigger}'
       - archive:
           artifacts: '*_*.dsc, *_*.tar.*, *_*_*.deb, *_*_*.changes'
-          latest_only: true
+          latest-only: true
     builders:
       - shell: 'export ARTIFACTS=true ; /srv/jenkins/bin/chroot-run.sh {my_distro} {my_shell}'
 
@@ -95,7 +118,7 @@
           project: '{my_trigger}'
       - archive:
           artifacts: '*_*.dsc, *_*.tar.*, *_*_*.deb, *_*_*.changes'
-          latest_only: true
+          latest-only: true
     builders:
       - shell: 'export ARTIFACTS=true ; /srv/jenkins/bin/chroot-run.sh {my_distro} {my_shell}'
 
@@ -116,6 +139,7 @@
             my_distro: 'jessie'
             my_shell: 'make check'
             my_description: 'run testsuite from piuparts develop branch on jessie.'
+            my_trigger: ''
         - '{name}_build_sid':
             my_distro: 'sid'
             my_shell: 'debuild -uc -us'
diff --git a/job-cfg/rebootstrap.yaml.py b/job-cfg/rebootstrap.yaml.py
index 37ef5ff..4addfdb 100755
--- a/job-cfg/rebootstrap.yaml.py
+++ b/job-cfg/rebootstrap.yaml.py
@@ -52,8 +52,8 @@ print("""
           url: http://www.profitbricks.co.uk
           text: Sponsored by Profitbricks
           icon: /userContent/images/profitbricks-24x24.png
-      - priority:
-          job-prio: '150'
+      - priority-sorter:
+          priority: '150'
       - throttle:
           max-total: 8
           max-per-node: 4
diff --git a/job-cfg/reproducible.yaml b/job-cfg/reproducible.yaml
index ba88f71..e7ed8b0 100644
--- a/job-cfg/reproducible.yaml
+++ b/job-cfg/reproducible.yaml
@@ -92,8 +92,8 @@
           url: http://www.profitbricks.co.uk
           text: Sponsored by Profitbricks
           icon: /userContent/images/profitbricks-24x24.png
-      - priority:
-          job-prio: '150'
+      - priority-sorter:
+          priority: '150'
       - throttle:
           max-total: 58
           max-per-node: 58
@@ -140,8 +140,8 @@
           url: http://www.profitbricks.co.uk
           text: Sponsored by Profitbricks
           icon: /userContent/images/profitbricks-24x24.png
-      - priority:
-          job-prio: '150'
+      - priority-sorter:
+          priority: '150'
       - throttle:
           max-total: 58
           max-per-node: 58
diff --git a/job-cfg/self.yaml b/job-cfg/self.yaml
index 4608290..dae08e1 100644
--- a/job-cfg/self.yaml
+++ b/job-cfg/self.yaml
@@ -26,8 +26,8 @@
           url: http://www.profitbricks.co.uk
           text: Sponsored by Profitbricks
           icon: /userContent/images/profitbricks-24x24.png
-      - priority:
-          job-prio: '125'
+      - priority-sorter:
+          priority: '125'
 
 - job-template:
     defaults: self-maintenance
@@ -41,8 +41,12 @@
 - job-template:
     defaults: self-maintenance
     name: '{name}_sub-maintenance'
+
+- job-template:
     defaults: self-maintenance
     name: '{name}_sub-maintenance-squid'
+
+- job-template:
     defaults: self-maintenance
     name: 'rebootstrap_maintenance'
 
diff --git a/job-cfg/torbrowser-launcher.yaml b/job-cfg/torbrowser-launcher.yaml
index 6de3876..3f29e4b 100644
--- a/job-cfg/torbrowser-launcher.yaml
+++ b/job-cfg/torbrowser-launcher.yaml
@@ -74,11 +74,11 @@
           fail-on-error: 'true'
       - archive:
           artifacts: 'results/*.*'
-          latest_only: false
-      - imagegallery:
-          title: '{my_description}'
-          includes: 'results/screenshot_*.png'
-          image-width: 300
+          latest-only: false
+      - image-gallery:
+          - title: '{my_description}'
+            includes: 'results/screenshot_*.png'
+            image-width: 300
       - email:
           recipients: '{my_recipients}'
     wrappers:
@@ -130,11 +130,11 @@
           fail-on-error: 'true'
       - archive:
           artifacts: 'results/*.*'
-          latest_only: false
-      - imagegallery:
-          title: '{my_description}'
-          includes: 'results/screenshot_*.png'
-          image-width: 300
+          latest-only: false
+      - image-gallery:
+          - title: '{my_description}'
+            includes: 'results/screenshot_*.png'
+            image-width: 300
       - email:
           recipients: '{my_recipients}'
     wrappers:
diff --git a/update_jdn.sh b/update_jdn.sh
index bfd2e0e..2de1d31 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -8,6 +8,7 @@ PVNAME=/dev/vdb      # LVM physical volume for jobs
 VGNAME=jenkins01     # LVM volume group
 STAMP=/var/log/jenkins/update-jenkins.stamp
 TMPFILE=$(mktemp)
+JJB=jenkins-job-builder
 
 explain() {
 	echo "$HOSTNAME: $1"
@@ -434,7 +435,7 @@ if [ "$HOSTNAME" = "jenkins" ] || [ "$HOSTNAME" = "jenkins-test-vm" ] ; then
 	rm -f $TMPFILE
 	for config in *.yaml ; do
 		if [ $config -nt $STAMP ] || [ ! -f $STAMP ] ; then
-			sudo jenkins-jobs update $config
+			$JJB update $config
 		else
 			echo "$config has not changed, nothing to do."
 		fi

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