From 74cdaa851f828af695c10063346adfa364bbdcbf Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 7 Mar 2018 18:25:56 +0000 Subject: [PATCH] jenkins: compile code before static code analysis --- Jenkinsfile.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy index 76a7ac8..e799493 100644 --- a/Jenkinsfile.groovy +++ b/Jenkinsfile.groovy @@ -17,8 +17,8 @@ pipeline { } stage('Static Code Analysis') { steps { - withMaven(maven: 'maven-3.5.2', jdk: 'JDK 1.8') { - sh "${mvn} checkstyle:checkstyle pmd:pmd" + withMaven(maven: 'maven 3.5.2', jdk: 'JDK 1.8') { + sh "${mvn} compile checkstyle:checkstyle pmd:pmd" } pmd canComputeNew: false, defaultEncoding: '', healthy: '', pattern: '', unHealthy: '' }