diff --git a/Jenkinsfile b/Jenkinsfile index dbeccc82adf9..9e25b4a7a9d7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,7 +14,7 @@ properties([ def axes = [ platforms: ['linux', 'windows'], - jdks: [17, 21], + jdks: [17, 21, 25], ] stage('Record build') { @@ -34,7 +34,7 @@ stage('Record build') { sh "launchable verify && launchable record build --name ${launchableName} --source jenkinsci/jenkins=." axes.values().combinations { def (platform, jdk) = it - if (platform == 'windows' && jdk != 17) { + if (platform == 'windows' && jdk != axes.jdks.last()) { return // unnecessary use of hardware } def sessionFile = "launchable-session-${platform}-jdk${jdk}.txt" @@ -60,7 +60,7 @@ def builds = [:] axes.values().combinations { def (platform, jdk) = it - if (platform == 'windows' && jdk != 17) { + if (platform == 'windows' && jdk != axes.jdks.last()) { return // unnecessary use of hardware } builds["${platform}-jdk${jdk}"] = { diff --git a/war/src/main/java/executable/Main.java b/war/src/main/java/executable/Main.java index 8a8cf67a87a5..2eeed2622d32 100644 --- a/war/src/main/java/executable/Main.java +++ b/war/src/main/java/executable/Main.java @@ -76,7 +76,7 @@ public class Main { * This list must remain synchronized with the one in {@code * JavaVersionRecommendationAdminMonitor}. */ - private static final NavigableSet SUPPORTED_JAVA_VERSIONS = new TreeSet<>(List.of(17, 21)); + private static final NavigableSet SUPPORTED_JAVA_VERSIONS = new TreeSet<>(List.of(17, 21, 25)); /** * Sets custom session cookie name.