Skip to content

Commit d99ecc2

Browse files
committed
Add JDK 11 to Jenkins
Fixes: gh-5860
1 parent ccd2664 commit d99ecc2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Jenkinsfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,21 @@ try {
8181
}
8282
}
8383
}
84+
},
85+
jdk11: {
86+
stage('JDK 11') {
87+
node {
88+
checkout scm
89+
try {
90+
withEnv(["JAVA_HOME=${ tool 'jdk11' }"]) {
91+
sh "./gradlew clean test --refresh-dependencies --no-daemon --stacktrace"
92+
}
93+
} catch(Exception e) {
94+
currentBuild.result = 'FAILED: jdk11'
95+
throw e
96+
}
97+
}
98+
}
8499
}
85100

86101
if(currentBuild.result == 'SUCCESS') {

0 commit comments

Comments
 (0)