Skip to content

Commit

Permalink
Set JAVA_HOME and PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
seth-mg authored Dec 3, 2024
1 parent 2c91613 commit 98e506c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CI.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 98e506c

Please sign in to comment.