diff --git a/jenkins/gradle/gradle-check.jenkinsfile b/jenkins/gradle/gradle-check.jenkinsfile index 346e196812..4715cff310 100644 --- a/jenkins/gradle/gradle-check.jenkinsfile +++ b/jenkins/gradle/gradle-check.jenkinsfile @@ -53,9 +53,10 @@ pipeline { ) } environment { + JAVA8_HOME="/var/jenkins/tools/hudson.model.JDK/jdk-8" JAVA11_HOME="/var/jenkins/tools/hudson.model.JDK/jdk-11" + JAVA14_HOME="/var/jenkins/tools/hudson.model.JDK/jdk-14" JAVA17_HOME="/var/jenkins/tools/hudson.model.JDK/jdk-17" - JAVA8_HOME="/var/jenkins/tools/hudson.model.JDK/jdk-8" USER_BUILD_CAUSE = currentBuild.getBuildCauses('hudson.model.Cause$UserIdCause') TIMER_BUILD_CAUSE = currentBuild.getBuildCauses('hudson.triggers.TimerTrigger$TimerTriggerCause') } @@ -78,6 +79,15 @@ pipeline { sh("ls ${JAVA11_HOME}/.. | grep jdk-11") } } + stage('Install jdk-14') { + tools { + jdk 'jdk-14' + } + steps { + echo "Install jdk-14" + sh("ls ${JAVA14_HOME}/.. | grep jdk-14") + } + } stage('Install jdk-17') { tools { jdk 'jdk-17'