Skip to content

Commit a0da26d

Browse files
committed
Combine all static analysis tools into one build step
QA-1115
1 parent 7458bf3 commit a0da26d

File tree

1 file changed

+6
-31
lines changed

1 file changed

+6
-31
lines changed

Jenkinsfile

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -74,37 +74,12 @@ pipeline {
7474
}
7575
}
7676
stage('Static Code Analysis') {
77-
parallel {
78-
stage('Checkstyle') {
79-
options {
80-
timeout(time: 5, unit: 'MINUTES')
81-
}
82-
steps {
83-
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
84-
sh 'mvn --activate-profiles qa checkstyle:checkstyle'
85-
}
86-
}
87-
}
88-
stage('Spotbugs') {
89-
options {
90-
timeout(time: 10, unit: 'MINUTES')
91-
}
92-
steps {
93-
/* Change treshold to Default or remove treshold to find more bugs */
94-
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
95-
sh 'mvn --activate-profiles qa spotbugs:check -Dspotbugs.threshold="High"'
96-
}
97-
}
98-
}
99-
stage('PMD') {
100-
options {
101-
timeout(time: 5, unit: 'MINUTES')
102-
}
103-
steps {
104-
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
105-
sh 'mvn --activate-profiles qa pmd:pmd -Dpmd.analysisCache=true'
106-
}
107-
}
77+
options {
78+
timeout(time: 30, unit: 'MINUTES')
79+
}
80+
steps {
81+
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
82+
sh 'mvn --activate-profiles qa verify -Dpmd.analysisCache=true'
10883
}
10984
}
11085
}

0 commit comments

Comments
 (0)