Merge pull request #21 from kemitix/pmd-reporting

jenkins: add pmd reporting
This commit is contained in:
Paul Campbell 2018-03-06 21:58:24 +00:00 committed by GitHub
commit 89a053f8e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ pipeline {
stage('Java 9') { stage('Java 9') {
steps { steps {
withMaven(maven: 'maven 3.5.2', jdk: 'JDK 9') { withMaven(maven: 'maven 3.5.2', jdk: 'JDK 9') {
sh 'mvn clean install' sh "${mvn} clean install"
} }
} }
} }
@ -36,6 +36,7 @@ pipeline {
stage('Test Results') { stage('Test Results') {
steps { steps {
junit '**/target/surefire-reports/*.xml' junit '**/target/surefire-reports/*.xml'
jacoco exclusionPattern: '**/*{Test|IT|Main|Application|Immutable}.class'
} }
} }
stage('Archiving') { stage('Archiving') {
@ -45,7 +46,7 @@ pipeline {
} }
stage('Quality') { stage('Quality') {
steps { steps {
jacoco exclusionPattern: '**/*{Test|IT|Main|Application|Immutable}.class' pmd canComputeNew: false, defaultEncoding: '', healthy: '', pattern: '', unHealthy: ''
} }
} }
stage('Deploy') { stage('Deploy') {