add publish_pylint

This commit is contained in:
Emmanuel Cazenave 2018-04-25 19:33:35 +02:00
parent 5796bb5ae5
commit f0671406c6
1 changed files with 14 additions and 8 deletions

View File

@ -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