summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@debian.org>2017-05-17 10:46:13 +0200
committerHolger Levsen <holger@layer-acht.org>2017-05-18 02:06:40 +0200
commitc8baabe511fcda9fc198214b8b15bd4a282cf5c4 (patch)
treeecdeffab11027faeebc26fb26b3acea936858945
parent7e758816131bc1f70b730d9017ab7c4ed604edf5 (diff)
downloadjenkins.debian.net-c8baabe511fcda9fc198214b8b15bd4a282cf5c4.tar.xz
reproducible: further DRY the defaults by de-duplicating email conf
Signed-off-by: Mattia Rizzolo <mattia@debian.org> Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rw-r--r--job-cfg/reproducible.yaml41
1 files changed, 14 insertions, 27 deletions
diff --git a/job-cfg/reproducible.yaml b/job-cfg/reproducible.yaml
index f5cebf6c..722a1b03 100644
--- a/job-cfg/reproducible.yaml
+++ b/job-cfg/reproducible.yaml
@@ -27,11 +27,11 @@
builders:
- shell: '{my_shell}'
publishers:
- - logparser: &logparse
+ - logparser: &logparser
parse-rules: '/srv/jenkins/logparse/reproducible.rules'
unstable-on-warning: 'true'
fail-on-error: 'true'
- - email:
+ - email: &email
recipients: '{my_recipients}'
node: '{my_node}'
@@ -43,9 +43,8 @@
- pollscm:
cron: '{my_scmpoll}'
publishers:
- - logparser: *logparse
- - email:
- recipients: '{my_recipients}'
+ - logparser: *logparser
+ - email: *email
- naginator: &naginator
progressive-delay-increment: 5
progressive-delay-maximum: 15
@@ -75,7 +74,7 @@
artifactDaysToKeep: -1
artifactNumToKeep: -1
publishers:
- - logparser: *logparse
+ - logparser: *logparser
- email:
recipients: '{my_recipients}'
notify-every-unstable-build: false
@@ -86,12 +85,10 @@
<<: *DEFAULTS
name: reproducible_other_projects
publishers:
- - logparser:
+ - logparser: &logparser-extra
+ <<: *logparser
parse-rules: '/srv/jenkins/logparse/reproducible-extra.rules'
- unstable-on-warning: 'true'
- fail-on-error: 'true'
- - email:
- recipients: '{my_recipients}'
+ - email: *email
- defaults:
<<: *DEFAULTS
@@ -102,11 +99,9 @@
cron: '*/6 * * * *'
publishers:
- logparser:
+ <<: *logparser
parse-rules: '{my_parse_rules}'
- unstable-on-warning: 'true'
- fail-on-error: 'true'
- - email:
- recipients: '{my_recipients}'
+ - email: *email
- naginator: *naginator
scm:
- git:
@@ -118,12 +113,8 @@
<<: *DEFAULTS
name: reproducible_other_projects_trigger
publishers:
- - logparser:
- parse-rules: '/srv/jenkins/logparse/reproducible-extra.rules'
- unstable-on-warning: 'true'
- fail-on-error: 'true'
- - email:
- recipients: '{my_recipients}'
+ - logparser: *logparser-extra
+ - email: *email
- trigger:
project: '{my_trigger}'
@@ -131,16 +122,12 @@
<<: *DEFAULTS
name: reproducible_other_projects_artifacts
publishers:
- - logparser:
- parse-rules: '/srv/jenkins/logparse/reproducible-extra.rules'
- unstable-on-warning: 'true'
- fail-on-error: 'true'
+ - logparser: *logparser-extra
- archive:
artifacts: 'results/*.*'
latest-only: false
allow-empty: true
- - email:
- recipients: '{my_recipients}'
+ - email: *email
- trigger:
project: '{my_trigger}'