Skip to content

Commit

Permalink
Added SpotBugs and JavaDoc warnings parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Mar 2, 2018
1 parent 6db72fb commit bb9b781
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile.local
Expand Up @@ -6,16 +6,16 @@ node {
stage ('Build') {
def mvnHome = tool 'mvn-default'

sh "${mvnHome}/bin/mvn --batch-mode -V -U -e clean verify -Dsurefire.useFile=false"
sh "${mvnHome}/bin/mvn --batch-mode -V -U -e clean verify -Dsurefire.useFile=false -Dmaven.test.failure.ignore"

junit testResults: '**/target/surefire-reports/TEST-*.xml'
warnings consoleParsers: [[parserName: 'Java Compiler (javac)']]
warnings consoleParsers: [[parserName: 'Java Compiler (javac)'], [parserName: 'JavaDoc Tool']]
}

stage ('Analysis') {
def mvnHome = tool 'mvn-default'

sh "${mvnHome}/bin/mvn -batch-mode -V -U -e checkstyle:checkstyle pmd:pmd pmd:cpd findbugs:findbugs"
sh "${mvnHome}/bin/mvn --batch-mode -V -U -e checkstyle:checkstyle pmd:pmd pmd:cpd findbugs:findbugs spotbugs:spotbugs"

checkstyle()
pmd()
Expand Down

0 comments on commit bb9b781

Please sign in to comment.