From c37dd12eb2b0366f19f92dcf2e99a1ef90d34163 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 5 Mar 2018 20:29:12 +0000 Subject: [PATCH 1/2] Add pmd reporting Merge jacoco into testing --- Jenkinsfile.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy index 997d8a1..2d9f47d 100644 --- a/Jenkinsfile.groovy +++ b/Jenkinsfile.groovy @@ -36,6 +36,7 @@ pipeline { stage('Test Results') { steps { junit '**/target/surefire-reports/*.xml' + jacoco exclusionPattern: '**/*{Test|IT|Main|Application|Immutable}.class' } } stage('Archiving') { @@ -45,7 +46,7 @@ pipeline { } stage('Quality') { steps { - jacoco exclusionPattern: '**/*{Test|IT|Main|Application|Immutable}.class' + pmd canComputeNew: false, defaultEncoding: '', healthy: '', pattern: '', unHealthy: '' } } stage('Deploy') { From 140f758609e0abadbcbda768d726359ec5a508da Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 6 Mar 2018 21:38:54 +0000 Subject: [PATCH 2/2] jenkins: run java 9 with maven options --- Jenkinsfile.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy index 2d9f47d..5b711b4 100644 --- a/Jenkinsfile.groovy +++ b/Jenkinsfile.groovy @@ -27,7 +27,7 @@ pipeline { stage('Java 9') { steps { withMaven(maven: 'maven 3.5.2', jdk: 'JDK 9') { - sh 'mvn clean install' + sh "${mvn} clean install" } } }