jenkins: compile code before static code analysis
This commit is contained in:
parent
b48c9b9ee9
commit
74cdaa851f
1 changed files with 2 additions and 2 deletions
|
@ -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: ''
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue