@@ -133,7 +133,7 @@ import org.hibernate.jenkins.pipeline.helpers.alternative.AlternativeMultiMap
133133 * pr: ...
134134 */
135135
136- @Field final String DEFAULT_JDK_TOOL = ' OpenJDK 21 Latest'
136+ @Field final String DEFAULT_JDK_TOOL = ' OpenJDK 25 Latest'
137137@Field final String MAVEN_TOOL = ' Apache Maven 3.9'
138138
139139// Default node pattern, to be used for resource-intensive stages.
@@ -174,8 +174,7 @@ stage('Configure') {
174174 new JdkBuildEnvironment (version : ' 17' , testCompilerTool : ' OpenJDK 17 Latest' ,
175175 condition : TestCondition . AFTER_MERGE ),
176176 new JdkBuildEnvironment (version : ' 21' , testCompilerTool : ' OpenJDK 21 Latest' ,
177- condition : TestCondition . BEFORE_MERGE ,
178- isDefault : true ),
177+ condition : TestCondition . AFTER_MERGE ),
179178 // We want to enable preview features when testing newer builds of OpenJDK:
180179 // even if we don't use these features, just enabling them can cause side effects
181180 // and it's useful to test that.
@@ -184,15 +183,10 @@ stage('Configure') {
184183 // they require the use of -Dnet.bytebuddy.experimental=true.
185184 // Make sure to remove that argument as soon as possible
186185 // -- generally that requires upgrading bytebuddy in Hibernate ORM after the JDK goes GA.
187- new JdkBuildEnvironment (version : ' 23' , testCompilerTool : ' OpenJDK 23 Latest' ,
188- testLauncherArgs : ' --enable-preview' ,
189- condition : TestCondition . AFTER_MERGE ),
190- new JdkBuildEnvironment (version : ' 24' , testCompilerTool : ' OpenJDK 24 Latest' ,
191- testLauncherArgs : ' --enable-preview -Dnet.bytebuddy.experimental=true' ,
192- condition : TestCondition . AFTER_MERGE ),
193186 new JdkBuildEnvironment (version : ' 25' , testCompilerTool : ' OpenJDK 25 Latest' ,
194187 testLauncherArgs : ' --enable-preview -Dnet.bytebuddy.experimental=true' ,
195- condition : TestCondition . AFTER_MERGE ),
188+ condition : TestCondition . BEFORE_MERGE ,
189+ isDefault : true ),
196190 new JdkBuildEnvironment (version : ' 26' , testCompilerTool : ' OpenJDK 26 Latest' ,
197191 testLauncherArgs : ' --enable-preview -Dnet.bytebuddy.experimental=true' ,
198192 condition : TestCondition . AFTER_MERGE )
0 commit comments