summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Cazenave <ecazenave@entrouvert.com>2018-04-25 17:33:35 (GMT)
committerEmmanuel Cazenave <ecazenave@entrouvert.com>2018-04-25 17:33:35 (GMT)
commitf0671406c66607ce2bd5711ea3604ad429390d0a (patch)
tree3a49a2e5b0586ed2b59e7ee035c1e7f49bd0af1d
parent5796bb5ae535860d7ec9866a7b88289ba311df7b (diff)
downloadjenkins-lib-f0671406c66607ce2bd5711ea3604ad429390d0a.zip
jenkins-lib-f0671406c66607ce2bd5711ea3604ad429390d0a.tar.gz
jenkins-lib-f0671406c66607ce2bd5711ea3604ad429390d0a.tar.bz2
add publish_pylintv0.2
-rw-r--r--src/eo/Utils.groovy22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/eo/Utils.groovy b/src/eo/Utils.groovy
index c14eabe..e2fb1cf 100644
--- a/src/eo/Utils.groovy
+++ b/src/eo/Utils.groovy
@@ -1,16 +1,9 @@
package eo;
-def publish_cobertura_report(report_pattern) {
- step([$class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false,
- coberturaReportFile: report_pattern, failUnhealthy: false, failUnstable: false,
- maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false])
-}
-
-
def mail_notify(currentBuild, env, email) {
/* Send mail to 'email' if branch is master
- else send mail to the author of last commit
+ else send mail to the author of the last commit
*/
if (currentBuild.result == null) {
// Hack to have the 'jenkins build back to normal' mail sent
@@ -27,4 +20,17 @@ def mail_notify(currentBuild, env, email) {
}
}
+
+def publish_coverage(report_pattern) {
+ step([$class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false,
+ coberturaReportFile: report_pattern, failUnhealthy: false, failUnstable: false,
+ maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false])
+}
+
+
+def publish_pylint(report_pattern) {
+ warnings canComputeNew: false, canResolveRelativePaths: false, categoriesPattern: '', defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', messagesPattern: '', parserConfigurations: [[parserName: 'PyLint', pattern: report_pattern]], unHealthy: ''
+}
+
+
return this