[Qa-jenkins-scm] [jenkins.debian.net] 01/01: edu-packages: use yaml interpolation to dispense with .py
Holger Levsen
holger at moszumanska.debian.org
Sat Dec 12 17:54:35 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 62d46d9096532293724b8e9461e8ed1d5726d490
Author: Philip Hands <phil at hands.com>
Date: Sat Dec 12 18:08:39 2015 +0100
edu-packages: use yaml interpolation to dispense with .py
---
.../{edu-packages.yaml.py => edu-packages.yaml} | 40 +++++++---------------
1 file changed, 12 insertions(+), 28 deletions(-)
diff --git a/job-cfg/edu-packages.yaml.py b/job-cfg/edu-packages.yaml
old mode 100755
new mode 100644
similarity index 69%
rename from job-cfg/edu-packages.yaml.py
rename to job-cfg/edu-packages.yaml
index 35e247f..725fa51
--- a/job-cfg/edu-packages.yaml.py
+++ b/job-cfg/edu-packages.yaml
@@ -1,17 +1,3 @@
-#!/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
@@ -47,22 +33,20 @@ print("""
- email:
recipients: 'jenkins+debian-edu debian-edu-commits at lists.alioth.debian.org'
-""")
-for package in sorted(packages):
- print("""- job-template:
+- job-template:
defaults: edu-packages
- name: '{name}_%(distro)s_%(package)s'""" %
- dict(package=package,
- distro=distro))
+ name: '{name}_{my_distro}_{my_package}'
+
-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))
+ my_distro: 'sid'
+ my_package:
+ - 'debian-edu'
+ - 'debian-edu-archive-keyring'
+ - 'debian-edu-artwork'
+ - 'debian-edu-config'
+ - 'debian-edu-doc'
+ - 'debian-edu-install'
+ jobs: ['{name}_{my_distro}_{my_package}']
--
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