From d743b04b64fd035eb2d2cf7b1ca14cf618a4f890 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Wed, 2 Feb 2022 16:38:39 -0700 Subject: [PATCH] Remove JDK 8 Build Issue gh-626 --- Jenkinsfile | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 22f7ae82..efce22dc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,7 +19,7 @@ try { sh "git clean -dfx" try { withCredentials([ARTIFACTORY_CREDENTIALS]) { - withEnv(["JAVA_HOME=${ tool 'jdk8' }"]) { + withEnv(["JAVA_HOME=${ tool 'jdk11' }"]) { sh "./gradlew test -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --refresh-dependencies --no-daemon --stacktrace" } } @@ -31,27 +31,7 @@ try { } } } - }, - check_jdk_11: { - stage('Check JDK 11') { - node { - checkout scm - sh "git clean -dfx" - try { - withCredentials([ARTIFACTORY_CREDENTIALS]) { - withEnv(["JAVA_HOME=${ tool 'jdk11' }"]) { - sh "./gradlew test -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --refresh-dependencies --no-daemon --stacktrace" - } - } - } catch(Exception e) { - currentBuild.result = 'FAILED: check' - throw e - } finally { - junit '**/build/test-results/*/*.xml' - } - } - } - } + } if(currentBuild.result == 'SUCCESS') { parallel artifacts: {