coding style

This commit is contained in:
Emmanuel Cazenave 2018-04-26 12:00:08 +02:00
parent ba5b3fb2c2
commit 807c2b799b
1 changed files with 14 additions and 10 deletions

View File

@ -10,24 +10,28 @@ def mail_notify(currentBuild, env, email) {
currentBuild.result = 'SUCCESS' currentBuild.result = 'SUCCESS'
} }
if (env.BRANCH_NAME == 'master') { if (env.BRANCH_NAME == 'master') {
step( step([
[$class: 'Mailer', notifyEveryUnstableBuild: true, $class: 'Mailer', notifyEveryUnstableBuild: true,
recipients: email, sendToIndividuals: true] recipients: email, sendToIndividuals: true
) ])
} else { } else {
step([ step([
$class: 'Mailer', notifyEveryUnstableBuild: true, $class: 'Mailer', notifyEveryUnstableBuild: true,
recipients: emailextrecipients([ recipients: emailextrecipients([
[$class: 'CulpritsRecipientProvider'], [$class: 'CulpritsRecipientProvider'],
[$class: 'RequesterRecipientProvider']])]) [$class: 'RequesterRecipientProvider']
])
])
} }
} }
def publish_coverage(report_pattern) { def publish_coverage(report_pattern) {
CoberturaPublisher autoUpdateHealth: false, autoUpdateStability: false, step([
coberturaReportFile: report_pattern, failUnhealthy: false, failUnstable: false, $class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false,
maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false coberturaReportFile: report_pattern, failUnhealthy: false, failUnstable: false,
maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false
])
} }