Skip to content

Commit

Permalink
test: enable future java for jenkins
Browse files Browse the repository at this point in the history
If the java version is to new for the lastest jenkins release it refuses
to start:

[TEST]: Waiting for Jenkins to get ready...
Running with Java 23 from /usr/lib/jvm/java-23-openjdk, which is not yet fully supported.
Run the command again with the --enable-future-java flag to enable preview support for future Java versions.
Supported Java versions are: [17, 21]
See https://jenkins.io/redirect/java-support/ for more information.
  • Loading branch information
rhubert committed Jan 6, 2025
1 parent 5ab7cb3 commit d9e9fa2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/jenkins/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ def download(url, dest):
"-Djenkins.install.runSetupWizard=false",
"-Dhudson.plugins.git.GitSCM.ALLOW_LOCAL_CHECKOUT=true",
"-Dcasc.jenkins.config=" + os.path.abspath("jenkins.yaml"),
"-jar", jenkins],
"-jar", jenkins,
"--enable-future-java" ],
env=env)
print("[TEST]:", "Jenkins running as pid", jenkinsProc.pid, "in", jenkinsHome)

Expand Down

0 comments on commit d9e9fa2

Please sign in to comment.