summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-25 16:13:01 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-25 16:13:01 +0200
commit8c36b6a7263dc8c787d574f55e64a2370456ba09 (patch)
tree83658ffaa50d007726d38d03c13f7e55c22b72f9
parent1bf957de08cb1bcd16d66ff81e38f97d34cd0653 (diff)
downloadjenkins.debian.net-8c36b6a7263dc8c787d574f55e64a2370456ba09.tar.xz
edu-packages: 6 new jobs to test 6 debian-edu src packages on every git commit
-rwxr-xr-xjob-cfg/edu-packages.yaml.py68
1 files changed, 68 insertions, 0 deletions
diff --git a/job-cfg/edu-packages.yaml.py b/job-cfg/edu-packages.yaml.py
new file mode 100755
index 00000000..54bd8f09
--- /dev/null
+++ b/job-cfg/edu-packages.yaml.py
@@ -0,0 +1,68 @@
+#!/usr/bin/python
+
+packages = """
+ debian-edu
+ debian-edu-config
+ debian-edu-install
+ debian-edu-doc
+ debian-edu-artwork
+ debian-edu-archive-keyring
+ """.split()
+
+distro="sid"
+
+print("""
+- defaults:
+ name: edu-packages
+ project-type: freestyle
+ properties:
+ - sidebar:
+ url: https://jenkins.debian.net/userContent/about.html
+ text: About jenkins.debian.net
+ icon: /userContent/images/debian-swirl-24x24.png
+ - sidebar:
+ url: https://jenkins.debian.net/view/edu_devel
+ text: Debian Edu development
+ icon: /userContent/images/debian-jenkins-24x24.png
+ - sidebar:
+ url: http://www.profitbricks.com
+ text: Sponsored by Profitbricks
+ icon: /userContent/images/profitbricks-24x24.png
+ description: 'Build the master branch of git://anonscm.debian.org/debian-edu/{my_package}.git in sid on every commit.<br><br>Job configuration source is <a href="http://anonscm.debian.org/cgit/qa/jenkins.debian.net.git/job-cfg/edu-packages.yaml">edu-packages.yaml</a>.'
+ logrotate:
+ daysToKeep: 180
+ numToKeep: 100
+ artifactDaysToKeep: -1
+ artifactNumToKeep: -1
+ scm:
+ - git:
+ url: 'git://anonscm.debian.org/debian-edu/{my_package}.git'
+ branches:
+ - master
+ builders:
+ - shell: '/srv/jenkins/bin/chroot-run.sh {my_distro} debuild -b -uc -us'
+ triggers:
+ - pollscm: '*/6 * * * *'
+ publishers:
+ - email:
+ recipients: 'jenkins+debian-edu holger@layer-acht.org'
+
+""")
+
+for package in sorted(packages):
+ print("""- job-template:
+ defaults: edu-packages
+ name: '{name}_%(distro)s_%(package)s'""" %
+ dict(package=package,
+ distro=distro))
+
+print("""
+- project:
+ name: edu-packages
+ jobs:""")
+for package in sorted(packages):
+ print(""" - '{name}_%(distro)s_%(package)s':
+ my_distro: '%(distro)s'
+ my_package: '%(package)s'""" %
+ dict(package=package,
+ distro=distro))