From d69f9a0283de57025320056208973b3db2889f54 Mon Sep 17 00:00:00 2001 From: Ralf Hubert Date: Sun, 29 Dec 2024 07:10:38 +0100 Subject: [PATCH] test: enable future java for jenkins 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. --- test/integration/jenkins/run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration/jenkins/run.py b/test/integration/jenkins/run.py index f7bb4190..dcabd96f 100644 --- a/test/integration/jenkins/run.py +++ b/test/integration/jenkins/run.py @@ -323,7 +323,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)