@@ -28,48 +28,21 @@ stage('Configure') {
2828 requireApprovalForPullRequest ' hibernate'
2929
3030 this . environments = [
31- // new BuildEnvironment( dbName: 'h2' ),
32- // new BuildEnvironment( dbName: 'hsqldb' ),
33- // new BuildEnvironment( dbName: 'derby' ),
34- // new BuildEnvironment( dbName: 'mysql' ),
35- // new BuildEnvironment( dbName: 'mariadb' ),
36- // new BuildEnvironment( dbName: 'postgresql' ),
37- // new BuildEnvironment( dbName: 'edb' ),
38- // new BuildEnvironment( dbName: 'oracle' ),
39- // new BuildEnvironment( dbName: 'db2' ),
40- // new BuildEnvironment( dbName: 'mssql' ),
41- // new BuildEnvironment( dbName: 'sybase' ),
42- // Don't build with HANA by default, but only do it nightly until we receive a 3rd instance
43- // new BuildEnvironment( dbName: 'hana_cloud', dbLockableResource: 'hana-cloud', dbLockResourceAsHost: true ),
4431 new BuildEnvironment ( node : ' s390x' ),
45- new BuildEnvironment ( dbName : ' tidb' , node : ' tidb' ,
46- notificationRecipients :
' [email protected] ' ),
32+ new BuildEnvironment ( dbName : ' sybase_jconn' ),
4733 new BuildEnvironment ( testJdkVersion : ' 17' ),
34+ new BuildEnvironment ( testJdkVersion : ' 21' ),
4835 // We want to enable preview features when testing newer builds of OpenJDK:
4936 // even if we don't use these features, just enabling them can cause side effects
5037 // and it's useful to test that.
51- new BuildEnvironment ( testJdkVersion : ' 20' , testJdkLauncherArgs : ' --enable-preview' ),
52- new BuildEnvironment ( testJdkVersion : ' 21' , testJdkLauncherArgs : ' --enable-preview' ),
38+ new BuildEnvironment ( testJdkVersion : ' 23' , testJdkLauncherArgs : ' --enable-preview' ),
5339 // The following JDKs aren't supported by Hibernate ORM out-of-the box yet:
5440 // they require the use of -Dnet.bytebuddy.experimental=true.
5541 // Make sure to remove that argument as soon as possible
5642 // -- generally that requires upgrading bytebuddy after the JDK goes GA.
57- new BuildEnvironment ( testJdkVersion : ' 23' , testJdkLauncherArgs : ' --enable-preview -Dnet.bytebuddy.experimental=true' ),
5843 new BuildEnvironment ( testJdkVersion : ' 24' , testJdkLauncherArgs : ' --enable-preview -Dnet.bytebuddy.experimental=true' )
5944 ];
6045
61- if ( env. CHANGE_ID ) {
62- if ( pullRequest. labels. contains( ' cockroachdb' ) ) {
63- this . environments. add( new BuildEnvironment ( dbName : ' cockroachdb' , node : ' cockroachdb' , longRunning : true ) )
64- }
65- if ( pullRequest. labels. contains( ' hana' ) ) {
66- this . environments. add( new BuildEnvironment ( dbName : ' hana_cloud' , dbLockableResource : ' hana-cloud' , dbLockResourceAsHost : true ) )
67- }
68- if ( pullRequest. labels. contains( ' sybase' ) ) {
69- this . environments. add( new BuildEnvironment ( dbName : ' sybase_jconn' ) )
70- }
71- }
72-
7346 helper. configure {
7447 file ' job-configuration.yaml'
7548 // We don't require the following, but the build helper plugin apparently does
@@ -97,15 +70,17 @@ if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
9770 currentBuild. result = ' NOT_BUILT'
9871 return
9972}
73+ // This is a limited maintenance branch, so don't run this on pushes to the branch, only on PRs
74+ if ( ! env. CHANGE_ID ) {
75+ print " INFO: Build skipped because this job should only run for pull request, not for branch pushes"
76+ currentBuild. result = ' NOT_BUILT'
77+ return
78+ }
10079
10180stage(' Build' ) {
10281 Map<String , Closure > executions = [:]
10382 Map<String , Map<String , String > > state = [:]
10483 environments. each { BuildEnvironment buildEnv ->
105- // Don't build environments for newer JDKs when this is a PR
106- if ( helper. scmSource. pullRequest && buildEnv. testJdkVersion ) {
107- return
108- }
10984 state[buildEnv. tag] = [:]
11085 executions. put(buildEnv. tag, {
11186 runBuildOnNode(buildEnv. node ?: NODE_PATTERN_BASE ) {
@@ -198,6 +173,9 @@ stage('Build') {
198173 }
199174 })
200175 }
176+ executions. put(' Hibernate Search Update Dependency' , {
177+ build job : ' /hibernate-search-dependency-update/7.2' , propagate : true , parameters : [string(name : ' UPDATE_JOB' , value : ' orm6.6' ), string(name : ' ORM_REPOSITORY' , value : helper. scmSource. remoteUrl), string(name : ' ORM_PULL_REQUEST_ID' , value : helper. scmSource. pullRequest. id)]
178+ })
201179 parallel(executions)
202180}
203181
0 commit comments