From 66f9d85bae3aa9ce0619f4553e33ccf22e54e1a9 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 3 Nov 2012 23:06:50 +0100 Subject: get rid of some redundancy --- job-cfg/chroot-test.yaml | 62 ++++++++++++++++++++++++++++++++++-------------- job-cfg/general.yaml | 1 + 2 files changed, 45 insertions(+), 18 deletions(-) diff --git a/job-cfg/chroot-test.yaml b/job-cfg/chroot-test.yaml index 788a97b0..69dfec61 100644 --- a/job-cfg/chroot-test.yaml +++ b/job-cfg/chroot-test.yaml @@ -1,41 +1,67 @@ -- publisher: - name: parse-output + +- defaults: + name: chroot-tests + description: '{my_description}{do_not_edit}' + builders: + - shell: '/srv/jenkins/bin/chroot_tester.sh {chroot_tester_params}' + publishers: + - logparser: + rulespath: '/srv/jenkins/logparse/debian.rules' + unstable_on_warning: 'false' + fail_on_error: 'false' + +- defaults: + name: chroot-tests+trigger + description: '{my_description}{do_not_edit}' publishers: - logparser: rulespath: '/srv/jenkins/logparse/debian.rules' unstable_on_warning: 'false' fail_on_error: 'false' + - trigger: + project: '{my_triggers}' - job-template: + defaults: chroot-tests name: '{name}-sid_install_gnome' - description: '{description}{do_not_edit}' - publishers: - - parse-output - builders: - - shell: '/srv/jenkins/bin/chroot_tester.sh {chroot_tester_params}' - job-template: + defaults: chroot-tests+trigger name: '{name}-sid_bootstrap' - description: '{description}{do_not_edit}' - publishers: - - parse-output - - trigger: - project: '{name}-{trigger}' - builders: - - shell: '/srv/jenkins/bin/chroot_tester.sh {chroot_tester_params}' + +- job-template: + defaults: chroot-tests + name: '{name}-wheezy_install_gnome' + +- job-template: + defaults: chroot-tests+trigger + name: '{name}-wheezy_bootstrap' - project: name: testjob_chroot-test do_not_edit: '

Configured by jenkins-job-builder, do not edit this job through the web UI.' - + defaults: chroot-tests jobs: - '{name}-sid_install_gnome': chroot_tester_params: 'sid gnome' - description: 'Debootstrap sid, then install gnome.' + my_defaults: 'chroot-tests' + my_description: 'Debootstrap sid, then install gnome.' - '{name}-sid_bootstrap': chroot_tester_params: 'sid' - description: 'Debootstrap sid.' - trigger: 'sid_install_gnome' + my_defaults: 'chroot-tests+trigger' + my_description: 'Debootstrap sid.' + my_triggers: 'testjob_chroot-test-sid_install_gnome' + + - '{name}-wheezy_install_gnome': + chroot_tester_params: 'wheezy gnome' + my_defaults: 'chroot-tests' + my_description: 'Debootstrap wheezy, then install gnome.' + + - '{name}-wheezy_bootstrap': + chroot_tester_params: 'wheezy' + my_defaults: 'chroot-tests+trigger' + my_description: 'Debootstrap wheezy.' + my_triggers: 'testjob_chroot-test-wheezy_install_gnome' diff --git a/job-cfg/general.yaml b/job-cfg/general.yaml index 9c904a35..2a644997 100644 --- a/job-cfg/general.yaml +++ b/job-cfg/general.yaml @@ -6,3 +6,4 @@ numToKeep: 25 artifactDaysToKeep: -1 artifactNumToKeep: -1 + -- cgit v1.2.3-70-g09d2