diff options
author | Philip Hands <phil@hands.com> | 2015-06-05 08:47:12 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-06-05 09:54:49 +0200 |
commit | 49ab2625d7723aa70f15a8b174d80f0de8e48065 (patch) | |
tree | 5b3bd9cda1947542eb9a962b84a97f902be20194 | |
parent | eb4ef6be0f687a58e56d00adb8d06cc081fa1be3 (diff) | |
download | jenkins.debian.net-49ab2625d7723aa70f15a8b174d80f0de8e48065.tar.xz |
d-i-yaml.py: try using more variables in job specs -- testing with pu jobs
-rwxr-xr-x | job-cfg/d-i.yaml.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/job-cfg/d-i.yaml.py b/job-cfg/d-i.yaml.py index 27b85f8e..15b7fa1d 100755 --- a/job-cfg/d-i.yaml.py +++ b/job-cfg/d-i.yaml.py @@ -287,7 +287,7 @@ def templs_jobs(): jtmpl(act=act,target=pkg), {'_'.join(['{name}',act,pkg]): {'gitrepo': 'git://git.debian.org/git/d-i/' + pkg}} ) - for act in ['build', 'pu-build'] + for act in ['build'] for pkg in pkgs]] return (templates, jobs) @@ -361,11 +361,16 @@ data.append( publ_email('debian-boot')]}}) (templs, jobs) = templs_jobs() +# let's see if we can be rather more efficient with the yaml -- test just the pu stuff +templs.append(jtmpl(act='pu-build',target='{pkg}')) +jobs.append({'_'.join(['{name}','pu-build','{pkg}']): {'gitrepo': 'git://git.debian.org/git/d-i/{pkg}'}}) + data.extend(templs) data.append( {'project': { 'name': 'd-i', 'do_not_edit': '<br><br>Job configuration source is <a href="http://anonscm.debian.org/cgit/qa/jenkins.debian.net.git/tree/job-cfg/d-i.yaml.py">d-i.yaml.py</a>.', + 'pkg': pkgs, 'jobs': jobs}}) sys.stdout.write( dump(data, Dumper=Dumper) ) |