From fc6b66fdb30e66d3d59419d8ff828b29d0dea90e Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Tue, 9 Apr 2019 15:03:20 -0600 Subject: [PATCH] Add JDK 12 to Jenkins Build Fixes: gh-6774 --- Jenkinsfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 88c32258ba..06c12c2930 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -100,6 +100,21 @@ try { } } } + }, + jdk12: { + stage('JDK 12') { + node { + checkout scm + try { + withEnv(["JAVA_HOME=${ tool 'openjdk12' }"]) { + sh "./gradlew clean test --refresh-dependencies --no-daemon --stacktrace" + } + } catch(Exception e) { + currentBuild.result = 'FAILED: jdk12' + throw e + } + } + } } if(currentBuild.result == 'SUCCESS') {