Enabled warnings-ng in jenkins.ci.
@@ -24,7 +24,7 @@ node ('linux') {
writeFile file: settingsXml, text: libraryResource('settings-azure.xml')
mavenOptions += "-s $settingsXml"
}
- mavenOptions += "clean verify checkstyle:checkstyle pmd:pmd findbugs:findbugs jacoco:prepare-agent test jacoco:report"
+ mavenOptions += "clean verify jacoco:prepare-agent test jacoco:report"
command = "mvn ${mavenOptions.join(' ')}"
env << "PATH+MAVEN=${tool 'mvn'}/bin"
@@ -33,10 +33,13 @@ node ('linux') {
}
junit testResults: '**/target/*-reports/TEST-*.xml'
- warnings consoleParsers: [[parserName: 'Java Compiler (javac)'], [parserName: 'JavaDoc'], [parserName: 'Maven']]
- checkstyle pattern: '**/target/checkstyle-result.xml'
- findbugs pattern: '**/target/*Xml.xml'
- pmd pattern: '**/target/pmd.xml'
+ recordIssues enabledForFailure: true, tool: mavenConsole()
+ recordIssues enabledForFailure: true, tools: [java(), javaDoc()], sourceCodeEncoding: 'UTF-8'
+ recordIssues enabledForFailure: true, tool: checkStyle(), sourceCodeEncoding: 'UTF-8'
+ recordIssues enabledForFailure: true, tool: cpd(pattern: '**/target/cpd.xml'), sourceCodeEncoding: 'UTF-8'
+ recordIssues enabledForFailure: true, tool: pmdParser(pattern: '**/target/pmd.xml'), sourceCodeEncoding: 'UTF-8'
+ recordIssues enabledForFailure: true, tool: spotBugs(), sourceCodeEncoding: 'UTF-8'
+ recordIssues enabledForFailure: true, tool: taskScanner(includePattern:'**/*.java', excludePattern:'target/**/*', highTags:'FIXME', normalTags:'TODO'), sourceCodeEncoding: 'UTF-8'
jacoco()
}
}
