@@ -28,48 +28,21 @@ stage('Configure') {
28
28
requireApprovalForPullRequest ' hibernate'
29
29
30
30
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 ),
44
31
new BuildEnvironment ( node : ' s390x' ),
45
- new BuildEnvironment ( dbName : ' tidb' , node : ' tidb' ,
46
- notificationRecipients :
' [email protected] ' ),
32
+ new BuildEnvironment ( dbName : ' sybase_jconn' ),
47
33
new BuildEnvironment ( testJdkVersion : ' 17' ),
34
+ new BuildEnvironment ( testJdkVersion : ' 21' ),
48
35
// We want to enable preview features when testing newer builds of OpenJDK:
49
36
// even if we don't use these features, just enabling them can cause side effects
50
37
// 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' ),
53
39
// The following JDKs aren't supported by Hibernate ORM out-of-the box yet:
54
40
// they require the use of -Dnet.bytebuddy.experimental=true.
55
41
// Make sure to remove that argument as soon as possible
56
42
// -- generally that requires upgrading bytebuddy after the JDK goes GA.
57
- new BuildEnvironment ( testJdkVersion : ' 23' , testJdkLauncherArgs : ' --enable-preview -Dnet.bytebuddy.experimental=true' ),
58
43
new BuildEnvironment ( testJdkVersion : ' 24' , testJdkLauncherArgs : ' --enable-preview -Dnet.bytebuddy.experimental=true' )
59
44
];
60
45
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
-
73
46
helper. configure {
74
47
file ' job-configuration.yaml'
75
48
// We don't require the following, but the build helper plugin apparently does
@@ -97,15 +70,17 @@ if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
97
70
currentBuild. result = ' NOT_BUILT'
98
71
return
99
72
}
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
+ }
100
79
101
80
stage(' Build' ) {
102
81
Map<String , Closure > executions = [:]
103
82
Map<String , Map<String , String > > state = [:]
104
83
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
- }
109
84
state[buildEnv. tag] = [:]
110
85
executions. put(buildEnv. tag, {
111
86
runBuildOnNode(buildEnv. node ?: NODE_PATTERN_BASE ) {
@@ -198,6 +173,9 @@ stage('Build') {
198
173
}
199
174
})
200
175
}
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
+ })
201
179
parallel(executions)
202
180
}
203
181
0 commit comments