@@ -26,28 +26,13 @@ this.helper = new JobHelper(this)
26
26
helper. runWithNotification {
27
27
stage(' Configure' ) {
28
28
this . environments = [
29
- // new BuildEnvironment( dbName: 'h2' ),
30
- // new BuildEnvironment( dbName: 'hsqldb' ),
31
- // new BuildEnvironment( dbName: 'derby' ),
32
- // new BuildEnvironment( dbName: 'mysql' ),
33
- // new BuildEnvironment( dbName: 'mariadb' ),
34
- // new BuildEnvironment( dbName: 'postgresql' ),
35
- // new BuildEnvironment( dbName: 'edb' ),
36
- // new BuildEnvironment( dbName: 'oracle' ),
37
- // new BuildEnvironment( dbName: 'db2' ),
38
- // new BuildEnvironment( dbName: 'mssql' ),
39
- // new BuildEnvironment( dbName: 'sybase' ),
40
- // Don't build with HANA by default, but only do it nightly until we receive a 3rd instance
41
- // new BuildEnvironment( dbName: 'hana_cloud', dbLockableResource: 'hana-cloud', dbLockResourceAsHost: true ),
42
29
new BuildEnvironment ( node : ' s390x' ),
43
- new BuildEnvironment ( dbName : ' tidb' , node : ' tidb' ,
44
- notificationRecipients :
' [email protected] ' ),
30
+ new BuildEnvironment ( dbName : ' sybase_jconn' ),
45
31
new BuildEnvironment ( testJdkVersion : ' 17' ),
32
+ new BuildEnvironment ( testJdkVersion : ' 21' ),
46
33
// We want to enable preview features when testing newer builds of OpenJDK:
47
34
// even if we don't use these features, just enabling them can cause side effects
48
35
// and it's useful to test that.
49
- new BuildEnvironment ( testJdkVersion : ' 20' , testJdkLauncherArgs : ' --enable-preview' ),
50
- new BuildEnvironment ( testJdkVersion : ' 21' , testJdkLauncherArgs : ' --enable-preview' ),
51
36
new BuildEnvironment ( testJdkVersion : ' 22' , testJdkLauncherArgs : ' --enable-preview' ),
52
37
// The following JDKs aren't supported by Hibernate ORM out-of-the box yet:
53
38
// they require the use of -Dnet.bytebuddy.experimental=true.
@@ -56,18 +41,6 @@ stage('Configure') {
56
41
new BuildEnvironment ( testJdkVersion : ' 23' , testJdkLauncherArgs : ' --enable-preview -Dnet.bytebuddy.experimental=true' )
57
42
];
58
43
59
- if ( env. CHANGE_ID ) {
60
- if ( pullRequest. labels. contains( ' cockroachdb' ) ) {
61
- this . environments. add( new BuildEnvironment ( dbName : ' cockroachdb' , node : ' cockroachdb' , longRunning : true ) )
62
- }
63
- if ( pullRequest. labels. contains( ' hana' ) ) {
64
- this . environments. add( new BuildEnvironment ( dbName : ' hana_cloud' , dbLockableResource : ' hana-cloud' , dbLockResourceAsHost : true ) )
65
- }
66
- if ( pullRequest. labels. contains( ' sybase' ) ) {
67
- this . environments. add( new BuildEnvironment ( dbName : ' sybase_jconn' ) )
68
- }
69
- }
70
-
71
44
helper. configure {
72
45
file ' job-configuration.yaml'
73
46
// We don't require the following, but the build helper plugin apparently does
@@ -91,19 +64,21 @@ stage('Configure') {
91
64
92
65
// Avoid running the pipeline on branch indexing
93
66
if (currentBuild. getBuildCauses(). toString(). contains(' BranchIndexingCause' )) {
94
- print " INFO: Build skipped due to trigger being Branch Indexing"
67
+ print " INFO: Build skipped due to trigger being Branch Indexing"
95
68
currentBuild. result = ' NOT_BUILT'
96
69
return
97
70
}
71
+ // This is a limited maintenance branch, so don't run this on pushes to the branch, only on PRs
72
+ if ( ! env. CHANGE_ID ) {
73
+ print " INFO: Build skipped because this job should only run for pull request, not for branch pushes"
74
+ currentBuild. result = ' NOT_BUILT'
75
+ return
76
+ }
98
77
99
78
stage(' Build' ) {
100
79
Map<String , Closure > executions = [:]
101
80
Map<String , Map<String , String > > state = [:]
102
81
environments. each { BuildEnvironment buildEnv ->
103
- // Don't build environments for newer JDKs when this is a PR
104
- if ( helper. scmSource. pullRequest && buildEnv. testJdkVersion ) {
105
- return
106
- }
107
82
state[buildEnv. tag] = [:]
108
83
executions. put(buildEnv. tag, {
109
84
runBuildOnNode(buildEnv. node ?: NODE_PATTERN_BASE ) {
@@ -194,6 +169,9 @@ stage('Build') {
194
169
}
195
170
})
196
171
}
172
+ executions. put(' Hibernate Search Update Dependency' , {
173
+ build job : ' /hibernate-search-dependency-update/7.1' , propagate : true , parameters : [string(name : ' UPDATE_JOB' , value : ' orm6.4' ), string(name : ' ORM_REPOSITORY' , value : helper. scmSource. remoteUrl), string(name : ' ORM_PULL_REQUEST_ID' , value : helper. scmSource. pullRequest. id)]
174
+ })
197
175
parallel(executions)
198
176
}
199
177
0 commit comments