Skip to content

Commit 5ec6d54

Browse files
committed
Use jdk-8-oracle
QA-1115
1 parent 8cdd339 commit 5ec6d54

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

Jenkinsfile

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ pipeline {
44

55
agent any
66

7+
environment {
8+
JDK_VERSION = 'jdk-8-oracle'
9+
}
10+
711
options {
812
ansiColor('xterm')
913
buildDiscarder(logRotator(artifactNumToKeepStr: '1'))
@@ -21,7 +25,7 @@ pipeline {
2125

2226
tools {
2327
maven 'M3'
24-
jdk '1.8'
28+
jdk "${JDK_VERSION}"
2529
}
2630

2731
stages {
@@ -30,7 +34,7 @@ pipeline {
3034
timeout(time: 5, unit: 'MINUTES')
3135
}
3236
steps {
33-
withMaven(jdk: '1.8', maven: 'M3') {
37+
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
3438
sh 'mvn clean'
3539
}
3640
}
@@ -40,7 +44,7 @@ pipeline {
4044
timeout(time: 5, unit: 'MINUTES')
4145
}
4246
steps {
43-
withMaven(jdk: '1.8', maven: 'M3') {
47+
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
4448
sh 'mvn compile test-compile'
4549
}
4650
}
@@ -52,7 +56,7 @@ pipeline {
5256
timeout(time: 30, unit: 'MINUTES')
5357
}
5458
steps {
55-
withMaven(jdk: '1.8', maven: 'M3') {
59+
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
5660
sh 'mvn --activate-profiles test test -DgsExec="${gsExec}" -DcompareExec="${compareExec}" -Dmaven.test.skip=false'
5761
}
5862
}
@@ -62,7 +66,7 @@ pipeline {
6266
timeout(time: 30, unit: 'MINUTES')
6367
}
6468
steps {
65-
withMaven(jdk: '1.8', maven: 'M3') {
69+
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
6670
sh 'mvn --activate-profiles test verify -DgsExec="${gsExec}" -DcompareExec="${compareExec}" -Dmaven.test.skip=false -Dmaven.javadoc.skip=true'
6771
}
6872
}
@@ -76,7 +80,7 @@ pipeline {
7680
timeout(time: 5, unit: 'MINUTES')
7781
}
7882
steps {
79-
withMaven(jdk: '1.8', maven: 'M3') {
83+
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
8084
sh 'mvn --activate-profiles qa checkstyle:checkstyle'
8185
}
8286
}
@@ -87,7 +91,7 @@ pipeline {
8791
}
8892
steps {
8993
/* Change treshold to Default or remove treshold to find more bugs */
90-
withMaven(jdk: '1.8', maven: 'M3') {
94+
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
9195
sh 'mvn --activate-profiles qa findbugs:check -Dfindbugs.threshold="High"'
9296
}
9397
}
@@ -97,7 +101,7 @@ pipeline {
97101
timeout(time: 5, unit: 'MINUTES')
98102
}
99103
steps {
100-
withMaven(jdk: '1.8', maven: 'M3') {
104+
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
101105
sh 'mvn --activate-profiles qa pmd:pmd -Dpmd.analysisCache=true'
102106
}
103107
}

0 commit comments

Comments
 (0)