coding style
This commit is contained in:
parent
ba5b3fb2c2
commit
807c2b799b
|
@ -10,24 +10,28 @@ def mail_notify(currentBuild, env, email) {
|
|||
currentBuild.result = 'SUCCESS'
|
||||
}
|
||||
if (env.BRANCH_NAME == 'master') {
|
||||
step(
|
||||
[$class: 'Mailer', notifyEveryUnstableBuild: true,
|
||||
recipients: email, sendToIndividuals: true]
|
||||
)
|
||||
step([
|
||||
$class: 'Mailer', notifyEveryUnstableBuild: true,
|
||||
recipients: email, sendToIndividuals: true
|
||||
])
|
||||
} else {
|
||||
step([
|
||||
$class: 'Mailer', notifyEveryUnstableBuild: true,
|
||||
recipients: emailextrecipients([
|
||||
[$class: 'CulpritsRecipientProvider'],
|
||||
[$class: 'RequesterRecipientProvider']])])
|
||||
recipients: emailextrecipients([
|
||||
[$class: 'CulpritsRecipientProvider'],
|
||||
[$class: 'RequesterRecipientProvider']
|
||||
])
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def publish_coverage(report_pattern) {
|
||||
CoberturaPublisher autoUpdateHealth: false, autoUpdateStability: false,
|
||||
coberturaReportFile: report_pattern, failUnhealthy: false, failUnstable: false,
|
||||
maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false
|
||||
step([
|
||||
$class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false,
|
||||
coberturaReportFile: report_pattern, failUnhealthy: false, failUnstable: false,
|
||||
maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false
|
||||
])
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue