diff --git a/Jenkinsfile b/Jenkinsfile index 4ce5a1f45a..a59a650d43 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -81,6 +81,21 @@ try { } } } + }, + jdk11: { + stage('JDK 11') { + node { + checkout scm + try { + withEnv(["JAVA_HOME=${ tool 'jdk11' }"]) { + sh "./gradlew clean test --refresh-dependencies --no-daemon --stacktrace" + } + } catch(Exception e) { + currentBuild.result = 'FAILED: jdk11' + throw e + } + } + } } if(currentBuild.result == 'SUCCESS') {