From 49ab2625d7723aa70f15a8b174d80f0de8e48065 Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Fri, 5 Jun 2015 08:47:12 +0100 Subject: d-i-yaml.py: try using more variables in job specs -- testing with pu jobs --- job-cfg/d-i.yaml.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'job-cfg/d-i.yaml.py') 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': '

Job configuration source is d-i.yaml.py.', + 'pkg': pkgs, 'jobs': jobs}}) sys.stdout.write( dump(data, Dumper=Dumper) ) -- cgit v1.2.3-54-g00ecf