From fd5876d53a77b6f72df1d5f5a1496f9d0d105d7b Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 19 May 2017 13:04:34 +0200 Subject: packages-tests: DRY distribution matrix, most settings are in common Signed-off-by: Mattia Rizzolo Signed-off-by: Holger Levsen --- job-cfg/packages-tests.yaml | 69 ++++++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 39 deletions(-) diff --git a/job-cfg/packages-tests.yaml b/job-cfg/packages-tests.yaml index c1faadbc..91c1ff4d 100644 --- a/job-cfg/packages-tests.yaml +++ b/job-cfg/packages-tests.yaml @@ -44,21 +44,22 @@ progressive-delay-maximum: 15 max-failed-builds: 5 regular-expression: 'Caused by: hudson.plugins.git.GitException: Command "git fetch' + my_default_distro_matrix: &distros_defaults + - sid: &distro_defaults_sid + my_trigger: '{name}_stretch' + my_origin_triggers: + - pollscm: + cron: '* H/2 * * *' + - stretch: &distro_defaults_stretch + my_trigger: '{name}_jessie' + - jessie: &distro_defaults_jessie {} -- job-template: - defaults: packages-tests - name: '{name}_sid' - my_origin_triggers: - - pollscm: - cron: '* H/2 * * *' - job-template: defaults: packages-tests - name: '{name}_stretch' + id: simple + name: '{name}_{my_distro}' -- job-template: - defaults: packages-tests - name: '{name}_jessie' - project: name: lintian-tests @@ -66,15 +67,9 @@ my_recipients: 'jenkins+debian-qa lintian-maint@debian.org' my_shell: 'timeout 6h debian/rules runtests' my_description: 'Debian/Lintian testsuite' + my_distro: *distros_defaults jobs: - - '{name}_sid': - my_distro: 'sid' - my_trigger: '{name}_stretch' - - '{name}_stretch': - my_distro: 'stretch' - my_trigger: '{name}_jessie' - - '{name}_jessie': - my_distro: 'jessie' + - simple - project: name: debhelper-tests @@ -82,16 +77,13 @@ my_recipients: 'jenkins+debian-qa debhelper-devel@lists.alioth.debian.org' my_shell: 'timeout 6h dpkg-buildpackage -us -uc -tc' my_description: 'Debhelper testsuite' + my_distro: + - sid: *distro_defaults_sid + - stretch: *distro_defaults_stretch + - jessie: + my_disabled: true jobs: - - '{name}_sid': - my_distro: 'sid' - my_trigger: '{name}_stretch' - - '{name}_stretch': - my_distro: 'stretch' - my_trigger: '{name}_jessie' - - '{name}_jessie': - my_distro: 'jessie' - my_disabled: true + - simple - project: name: dak-tests @@ -99,16 +91,15 @@ my_recipients: 'jenkins+debian-ftp debian-dak@lists.debian.org' my_shell: 'timeout 1h dpkg-buildpackage -us -uc -tc' my_description: 'DAK testsuite' + my_distro: + # DAK tests cannot be run in sid/stretch atm, but still create the jobs + - sid: + my_disabled: true + - stretch: + my_disabled: true + - jessie: + my_origin_triggers: + - pollscm: + cron: '* H/2 * * *' jobs: - # DAK tests cannot be run in sid/stretch atm. - - '{name}_sid': - my_distro: 'sid' - my_disabled: true - - '{name}_stretch': - my_distro: 'stretch' - my_disabled: true - - '{name}_jessie': - my_distro: 'jessie' - my_origin_triggers: - - pollscm: - cron: '* H/2 * * *' + - simple -- cgit v1.2.3-70-g09d2