coding style
This commit is contained in:
parent
f0671406c6
commit
ba5b3fb2c2
|
@ -10,26 +10,39 @@ 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'],
|
||||
step([
|
||||
$class: 'Mailer', notifyEveryUnstableBuild: true,
|
||||
recipients: emailextrecipients([
|
||||
[$class: 'CulpritsRecipientProvider'],
|
||||
[$class: 'RequesterRecipientProvider']])])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def publish_coverage(report_pattern) {
|
||||
step([$class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false,
|
||||
CoberturaPublisher autoUpdateHealth: false, autoUpdateStability: false,
|
||||
coberturaReportFile: report_pattern, failUnhealthy: false, failUnstable: false,
|
||||
maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false])
|
||||
maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false
|
||||
}
|
||||
|
||||
|
||||
def publish_coverage_native(report_pattern) {
|
||||
publishHTML target : [
|
||||
allowMissing: false, alwaysLinkToLastBuild: false, keepAll: true, reportDir: 'htmlcov',
|
||||
reportFiles: report_pattern, reportName: 'Coverage Report (native)',reportTitles: ''
|
||||
]
|
||||
}
|
||||
|
||||
def publish_pylint(report_pattern) {
|
||||
warnings canComputeNew: false, canResolveRelativePaths: false, categoriesPattern: '', defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', messagesPattern: '', parserConfigurations: [[parserName: 'PyLint', pattern: report_pattern]], unHealthy: ''
|
||||
warnings canComputeNew: false, canResolveRelativePaths: false, categoriesPattern: '',
|
||||
defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '',
|
||||
messagesPattern: '', parserConfigurations: [[parserName: 'PyLint', pattern: report_pattern]],
|
||||
unHealthy: ''
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue