coding style
This commit is contained in:
parent
ba5b3fb2c2
commit
807c2b799b
|
@ -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
|
||||||
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue