@@ -14,7 +14,7 @@ import org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper
14
14
@Library (' hibernate-jenkins-pipeline-helpers' ) _
15
15
import org.hibernate.jenkins.pipeline.helpers.job.JobHelper
16
16
17
- @Field final String DEFAULT_JDK_VERSION = ' 21 '
17
+ @Field final String DEFAULT_JDK_VERSION = ' 23 '
18
18
@Field final String DEFAULT_JDK_TOOL = " OpenJDK ${ DEFAULT_JDK_VERSION} Latest"
19
19
@Field final String NODE_PATTERN_BASE = ' Worker&&Containers'
20
20
@Field List<BuildEnvironment > environments
@@ -42,7 +42,8 @@ stage('Configure') {
42
42
new BuildEnvironment ( node : ' s390x' ),
43
43
// We generally build with JDK 21, but our baseline is Java 17, so we test with JDK 17, to be sure everything works.
44
44
// Here we even compile the main code with JDK 17, to be sure no JDK 18+ classes are depended on.
45
- new BuildEnvironment ( mainJdkVersion : ' 17' , testJdkVersion : ' 17' ),
45
+ new BuildEnvironment ( mainJdkVersion : ' 17' , testJdkVersion : ' 17' ),
46
+ new BuildEnvironment ( mainJdkVersion : ' 21' , testJdkVersion : ' 21' ),
46
47
// We want to enable preview features when testing newer builds of OpenJDK:
47
48
// even if we don't use these features, just enabling them can cause side effects
48
49
// and it's useful to test that.
0 commit comments