Skip to content

Commit 0ed91f4

Browse files
committed
Add JDK 11 to Jenkinsfile
Closes gh-626
1 parent 12c4b4d commit 0ed91f4

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

Jenkinsfile

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,27 @@ try {
3131
}
3232
}
3333
}
34-
}
34+
},
35+
check_jdk_11: {
36+
stage('Check JDK 11') {
37+
node {
38+
checkout scm
39+
sh "git clean -dfx"
40+
try {
41+
withCredentials([ARTIFACTORY_CREDENTIALS]) {
42+
withEnv(["JAVA_HOME=${ tool 'jdk11' }"]) {
43+
sh "./gradlew test -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --refresh-dependencies --no-daemon --stacktrace"
44+
}
45+
}
46+
} catch(Exception e) {
47+
currentBuild.result = 'FAILED: check'
48+
throw e
49+
} finally {
50+
junit '**/build/test-results/*/*.xml'
51+
}
52+
}
53+
}
54+
}
3555

3656
if(currentBuild.result == 'SUCCESS') {
3757
parallel artifacts: {

0 commit comments

Comments
 (0)