From 7d4e7bf42d22fe5bc6d985ed67e09002afc0f879 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Tue, 27 Mar 2018 09:31:13 -0500 Subject: [PATCH] Add JDK 10 & 11 Builds Issue: gh-5160 --- Jenkinsfile | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 831606333b..8703b270ff 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -76,11 +76,41 @@ try { sh "./gradlew clean test --no-daemon --stacktrace" } } catch(Exception e) { - currentBuild.result = 'FAILED: snapshots' + currentBuild.result = 'FAILED: jdk9' throw e } } } + }, + jdk10: { + stage('JDK 10') { + node { + checkout scm + try { + withEnv(["JAVA_HOME=${ tool 'jdk10' }"]) { + sh "./gradlew clean test --no-daemon --stacktrace" + } + } catch(Exception e) { + currentBuild.result = 'FAILED: jdk10' + throw e + } + } + } + }, + jdk11: { + stage('JDK 11') { + node { + checkout scm + try { + withEnv(["JAVA_HOME=${ tool 'jdk11' }"]) { + sh "./gradlew clean test --no-daemon --stacktrace" + } + } catch(Exception e) { + currentBuild.result = 'FAILED: jdk11' + throw e + } + } + } } if(currentBuild.result == 'SUCCESS') {