Skip to content

Commit

Permalink
Force Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
seth-mg authored Jan 7, 2025
1 parent eb4e066 commit 9cb86f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
node ("docker-light") {
def SOURCEDIR = pwd()
try {
env.JAVA_HOME = "${tool 'java21'}"
env.PATH = "${env.JAVA_HOME}/bin:${env.PATH}"
def mavenLocalRepo = "$JENKINS_HOME/maven-local-repositories/executor-$EXECUTOR_NUMBER"
stage("Clean up") {
step([$class: 'WsCleanup'])
Expand Down

0 comments on commit 9cb86f5

Please sign in to comment.