jenkins: compile code before static code analysis

This commit is contained in:
Paul Campbell 2018-03-07 18:25:56 +00:00
parent b48c9b9ee9
commit 74cdaa851f

View file

@ -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: ''
}