Skip to content

Commit

Permalink
Add jdk14 for gradle check 1.x version (#2300)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored Jul 6, 2022
1 parent 9957f65 commit 3ae467a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion jenkins/gradle/gradle-check.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Expand All @@ -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'
Expand Down

0 comments on commit 3ae467a

Please sign in to comment.