summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-12-23 16:46:29 +0100
committerHolger Levsen <holger@layer-acht.org>2014-12-23 16:46:29 +0100
commit5cb5d11c6645a200254dcd9efac6025436d79323 (patch)
treebe627759b8f76ffca67b9ebcd3ffb0331196dc2b
parentaa9f4ab906f05fe395e373163666df351414a027 (diff)
downloadjenkins.debian.net-5cb5d11c6645a200254dcd9efac6025436d79323.tar.xz
convert lvc.yaml into lvc.yaml.py
-rw-r--r--job-cfg/lvc.yaml.py (renamed from job-cfg/lvc.yaml)62
1 files changed, 40 insertions, 22 deletions
diff --git a/job-cfg/lvc.yaml b/job-cfg/lvc.yaml.py
index 87ca0fe9..9dce44f4 100644
--- a/job-cfg/lvc.yaml
+++ b/job-cfg/lvc.yaml.py
@@ -1,3 +1,23 @@
+#!/usr/bin/python
+
+images = """
+ wheezy_standard
+ wheezy_gnome-desktop
+ """.split()
+
+features = """
+ apt
+ """.split()
+
+files = { 'wheezy_standard': '/var/lib/jenkins/debian-live-7.7.0-amd64-standard.iso',
+ 'wheezy_gnome-desktop': '/var/lib/jenkins/debian-live-7.7.0-amd64-gnome-desktop.iso'
+ }
+
+titles = { 'wheezy_standard': 'Debian Live 7 standard',
+ 'wheezy_gnome-desktop': 'Debian Live 7 GNOME desktop'
+ }
+
+print("""
- defaults:
name: lvc
project-type: freestyle
@@ -14,7 +34,7 @@
url: http://www.profitbricks.com
text: Sponsored by Profitbricks
icon: /userContent/images/profitbricks-24x24.png
- description: '{my_description}<br><br>Job configuration source is <a href="http://anonscm.debian.org/cgit/qa/jenkins.debian.net.git/tree/job-cfg/lvc.yaml">lvc.yaml</a>.'
+ description: '{my_description}<br><br>Job configuration source is <a href="http://anonscm.debian.org/cgit/qa/jenkins.debian.net.git/tree/job-cfg/lvc.yaml.py">lvc.yaml.py</a>.'
logrotate:
daysToKeep: 90
numToKeep: 20
@@ -34,32 +54,30 @@
- shell: '/srv/jenkins/bin/lvc/run_test_suite {my_params}'
triggers:
- timed: '{my_time}'
+""")
-- job-template:
+for image in sorted(images):
+ for feature in sorted(features):
+ print("""- job-template:
defaults: lvc
- name: '{name}_debian-live_wheezy'
-
-- job-template:
- defaults: lvc
- name: '{name}_debian-live_standard_wheezy'
-
-- job-template:
- defaults: lvc
- name: '{name}_debian-live_gnome_wheezy'
+ name: '{name}_debian-live_%(image)s_%(feature)s'
+""" % dict(image=image,
+ feature=feature))
+print("""
- project:
name: lvc
- jobs:
- - '{name}_debian-live_standard_wheezy':
- my_title: 'Debian Live 7 standard'
- my_time: '23 45 31 12 *'
- my_params: '--debug --capture lvc_debian-live_wheezy.webm --temp-dir $WORKSPACE --iso /var/lib/jenkins/debian-live-7.7.0-amd64-standard.iso DebianLive7/apt.feature'
- my_pngs: 'apt-*.png'
- my_description: 'Work in progress...'
- - '{name}_debian-live_gnome_wheezy':
- my_title: 'Debian Live 7 GNOME desktop'
+ jobs:""")
+for image in sorted(images):
+ for feature in sorted(features):
+ print(""" - '{name}_debian-live_%(image)s_%(feature)s':
+ my_title: '%(title)s'
my_time: '23 45 31 12 *'
- my_params: '--debug --capture lvc_debian-live_wheezy.webm --temp-dir $WORKSPACE --iso /var/lib/jenkins/debian-live-7.7.0-amd64-gnome-desktop.iso DebianLive7/apt.feature'
- my_pngs: 'apt-*.png'
+ my_params: '--debug --capture lvc_debian-live_%(image)s_%(feature)s.webm --temp-dir $WORKSPACE --iso %(iso)s DebianLive7/%(feature)s.feature'
+ my_pngs: '%(feature)s-*.png'
my_description: 'Work in progress...'
+""" % dict(image=image,
+ feature=feature,
+ iso=files[image],
+ title=titles[image]))