Skip to content

Commit 9cb86f5

Browse files
authored
Force Java 21
1 parent eb4e066 commit 9cb86f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Jenkinsfile

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
node ("docker-light") {
22
def SOURCEDIR = pwd()
33
try {
4+
env.JAVA_HOME = "${tool 'java21'}"
5+
env.PATH = "${env.JAVA_HOME}/bin:${env.PATH}"
46
def mavenLocalRepo = "$JENKINS_HOME/maven-local-repositories/executor-$EXECUTOR_NUMBER"
57
stage("Clean up") {
68
step([$class: 'WsCleanup'])

0 commit comments

Comments
 (0)