From 5758f601697f32a0d191e47c64abb651eedb8306 Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Sat, 12 Dec 2015 19:35:39 +0100 Subject: remove a little duplication with yaml anchors/aliases --- job-cfg/reproducible.yaml | 132 ++++++++++++++-------------------------------- 1 file changed, 39 insertions(+), 93 deletions(-) (limited to 'job-cfg/reproducible.yaml') diff --git a/job-cfg/reproducible.yaml b/job-cfg/reproducible.yaml index 66d8b83f..fdedcde3 100644 --- a/job-cfg/reproducible.yaml +++ b/job-cfg/reproducible.yaml @@ -1,22 +1,22 @@ - defaults: name: reproducible project-type: freestyle - triggers: - - timed: '{my_timed}' properties: - - sidebar: + - sidebar: &sb1 url: https://jenkins.debian.net/userContent/about.html text: About jenkins.debian.net icon: /userContent/images/debian-swirl-24x24.png - - sidebar: + - sidebar: &sb2 url: https://jenkins.debian.net/view/reproducible text: reproducible builds jobs icon: /userContent/images/debian-jenkins-24x24.png - - sidebar: + - sidebar: &sb3 url: http://www.profitbricks.co.uk text: Sponsored by Profitbricks icon: /userContent/images/profitbricks-24x24.png - description: '{my_description}
Job configuration source is reproducible.yaml.
Results are available at https://reproducible.debian.net.' + description: &desc '{my_description}
Job configuration source is reproducible.yaml.
Results are available at https://reproducible.debian.net.' + triggers: + - timed: '{my_timed}' logrotate: daysToKeep: 90 numToKeep: 30 @@ -25,7 +25,7 @@ builders: - shell: '{my_shell}' publishers: - - logparser: + - logparser: &logparse parse-rules: '/srv/jenkins/logparse/reproducible.rules' unstable-on-warning: 'true' fail-on-error: 'true' @@ -36,23 +36,14 @@ - defaults: name: reproducible_git project-type: freestyle + properties: + - sidebar: *sb1 + - sidebar: *sb2 + - sidebar: *sb3 + description: *desc triggers: - timed: '{my_timed}' - pollscm: '*/6 * * * *' - properties: - - sidebar: - url: https://jenkins.debian.net/userContent/about.html - text: About jenkins.debian.net - icon: /userContent/images/debian-swirl-24x24.png - - sidebar: - url: https://jenkins.debian.net/view/reproducible - text: reproducible builds jobs - icon: /userContent/images/debian-jenkins-24x24.png - - sidebar: - url: http://www.profitbricks.co.uk - text: Sponsored by Profitbricks - icon: /userContent/images/profitbricks-24x24.png - description: '{my_description}
Job configuration source is reproducible.yaml.
Results are available at https://reproducible.debian.net.' logrotate: daysToKeep: 90 numToKeep: 20 @@ -61,10 +52,7 @@ builders: - shell: '{my_shell}' publishers: - - logparser: - parse-rules: '/srv/jenkins/logparse/reproducible.rules' - unstable-on-warning: 'true' - fail-on-error: 'true' + - logparser: *logparse - email: recipients: '{my_recipients}' scm: @@ -77,21 +65,11 @@ - defaults: name: reproducible_builder project-type: freestyle - triggers: - - timed: '{my_timed}' + description: *desc properties: - - sidebar: - url: https://jenkins.debian.net/userContent/about.html - text: About jenkins.debian.net - icon: /userContent/images/debian-swirl-24x24.png - - sidebar: - url: https://jenkins.debian.net/view/reproducible - text: reproducible builds jobs - icon: /userContent/images/debian-jenkins-24x24.png - - sidebar: - url: http://www.profitbricks.co.uk - text: Sponsored by Profitbricks - icon: /userContent/images/profitbricks-24x24.png + - sidebar: *sb1 + - sidebar: *sb2 + - sidebar: *sb3 - priority-sorter: priority: '150' - throttle: @@ -101,7 +79,8 @@ option: category categories: - reproducible - description: '{my_description}
Job configuration source is reproducible.yaml.
Results are available at https://reproducible.debian.net.' + triggers: + - timed: '{my_timed}' wrappers: - timeout: timeout: 1560 @@ -113,10 +92,7 @@ builders: - shell: '{my_shell}' publishers: - - logparser: - parse-rules: '/srv/jenkins/logparse/reproducible.rules' - unstable-on-warning: 'true' - fail-on-error: 'true' + - logparser: *logparse - email: recipients: '{my_recipients}' notify-every-unstable-build: false @@ -125,21 +101,11 @@ - defaults: name: reproducible_builder_trigger project-type: freestyle - triggers: - - timed: '{my_timed}' + description: *desc properties: - - sidebar: - url: https://jenkins.debian.net/userContent/about.html - text: About jenkins.debian.net - icon: /userContent/images/debian-swirl-24x24.png - - sidebar: - url: https://jenkins.debian.net/view/reproducible - text: reproducible builds jobs - icon: /userContent/images/debian-jenkins-24x24.png - - sidebar: - url: http://www.profitbricks.co.uk - text: Sponsored by Profitbricks - icon: /userContent/images/profitbricks-24x24.png + - sidebar: *sb1 + - sidebar: *sb2 + - sidebar: *sb3 - priority-sorter: priority: '150' - throttle: @@ -149,7 +115,8 @@ option: category categories: - reproducible - description: '{my_description}
Job configuration source is reproducible.yaml.
Results are available at https://reproducible.debian.net.' + triggers: + - timed: '{my_timed}' wrappers: - timeout: timeout: 1560 @@ -161,10 +128,7 @@ builders: - shell: '{my_shell}' publishers: - - logparser: - parse-rules: '/srv/jenkins/logparse/reproducible.rules' - unstable-on-warning: 'true' - fail-on-error: 'true' + - logparser: *logparse - email: recipients: '{my_recipients}' notify-every-unstable-build: false @@ -175,21 +139,11 @@ - defaults: name: reproducible_other_projects project-type: freestyle - triggers: - - timed: '{my_timed}' + description: *desc properties: - - sidebar: - url: https://jenkins.debian.net/userContent/about.html - text: About jenkins.debian.net - icon: /userContent/images/debian-swirl-24x24.png - - sidebar: - url: https://jenkins.debian.net/view/reproducible - text: reproducible builds jobs - icon: /userContent/images/debian-jenkins-24x24.png - - sidebar: - url: http://www.profitbricks.co.uk - text: Sponsored by Profitbricks - icon: /userContent/images/profitbricks-24x24.png + - sidebar: *sb1 + - sidebar: *sb2 + - sidebar: *sb3 - throttle: max-total: 9 max-per-node: 9 @@ -197,7 +151,8 @@ option: category categories: - reproducible # no special category yet - description: '{my_description}
Job configuration source is reproducible.yaml.
Results are available at https://reproducible.debian.net.' + triggers: + - timed: '{my_timed}' logrotate: daysToKeep: 90 numToKeep: 30 @@ -217,21 +172,11 @@ - defaults: name: reproducible_other_projects_trigger project-type: freestyle - triggers: - - timed: '{my_timed}' + description: *desc properties: - - sidebar: - url: https://jenkins.debian.net/userContent/about.html - text: About jenkins.debian.net - icon: /userContent/images/debian-swirl-24x24.png - - sidebar: - url: https://jenkins.debian.net/view/reproducible - text: reproducible builds jobs - icon: /userContent/images/debian-jenkins-24x24.png - - sidebar: - url: http://www.profitbricks.co.uk - text: Sponsored by Profitbricks - icon: /userContent/images/profitbricks-24x24.png + - sidebar: *sb1 + - sidebar: *sb2 + - sidebar: *sb3 - throttle: max-total: 9 max-per-node: 9 @@ -239,7 +184,8 @@ option: category categories: - reproducible # no special category yet - description: '{my_description}
Job configuration source is reproducible.yaml.
Results are available at https://reproducible.debian.net.' + triggers: + - timed: '{my_timed}' logrotate: daysToKeep: 90 numToKeep: 30 -- cgit v1.2.3-70-g09d2