summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Cazenave <ecazenave@entrouvert.com>2018-04-26 09:48:09 (GMT)
committerEmmanuel Cazenave <ecazenave@entrouvert.com>2018-04-26 09:48:09 (GMT)
commitba5b3fb2c2124080a7cfa0e8af24ee0f7041cbfe (patch)
tree1727cb862df374f8e390206a418469452dc88905
parentf0671406c66607ce2bd5711ea3604ad429390d0a (diff)
downloadjenkins-lib-ba5b3fb2c2124080a7cfa0e8af24ee0f7041cbfe.zip
jenkins-lib-ba5b3fb2c2124080a7cfa0e8af24ee0f7041cbfe.tar.gz
jenkins-lib-ba5b3fb2c2124080a7cfa0e8af24ee0f7041cbfe.tar.bz2
coding style
-rw-r--r--src/eo/Utils.groovy29
1 files changed, 21 insertions, 8 deletions
diff --git a/src/eo/Utils.groovy b/src/eo/Utils.groovy
index e2fb1cf..35884eb 100644
--- a/src/eo/Utils.groovy
+++ b/src/eo/Utils.groovy
@@ -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: ''
}