@@ -40,13 +40,13 @@ stage('Configure') {
40
40
// Don't build with HANA by default, but only do it nightly until we receive a 3rd instance
41
41
// new BuildEnvironment( dbName: 'hana_cloud', dbLockableResource: 'hana-cloud', dbLockResourceAsHost: true ),
42
42
new BuildEnvironment ( node : ' s390x' ),
43
+ new BuildEnvironment ( dbName : ' sybase_jconn' ),
43
44
// We generally build with JDK 21, but our baseline is Java 17, so we test with JDK 17, to be sure everything works.
44
45
// Here we even compile the main code with JDK 17, to be sure no JDK 18+ classes are depended on.
45
46
new BuildEnvironment ( mainJdkVersion : ' 17' , testJdkVersion : ' 17' ),
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.
49
- new BuildEnvironment ( testJdkVersion : ' 24' , testJdkLauncherArgs : ' --enable-preview' , additionalOptions : ' -PskipJacoco=true' ),
50
50
new BuildEnvironment ( testJdkVersion : ' 25' , testJdkLauncherArgs : ' --enable-preview' , additionalOptions : ' -PskipJacoco=true' ),
51
51
// The following JDKs aren't supported by Hibernate ORM out-of-the box yet:
52
52
// they require the use of -Dnet.bytebuddy.experimental=true.
@@ -97,17 +97,17 @@ if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
97
97
currentBuild. result = ' NOT_BUILT'
98
98
return
99
99
}
100
+ // This is a limited maintenance branch, so don't run this on pushes to the branch, only on PRs
101
+ if ( ! env. CHANGE_ID ) {
102
+ print " INFO: Build skipped because this job should only run for pull request, not for branch pushes"
103
+ currentBuild. result = ' NOT_BUILT'
104
+ return
105
+ }
100
106
101
107
stage(' Build' ) {
102
108
Map<String , Closure > executions = [:]
103
109
Map<String , Map<String , String > > state = [:]
104
110
environments. each { BuildEnvironment buildEnv ->
105
- // Don't build environments for newer JDKs when this is a PR, unless the PR is labelled with 'jdk' or 'jdk-<version>'
106
- if ( helper. scmSource. pullRequest &&
107
- buildEnv. testJdkVersion && buildEnv. testJdkVersion. toInteger() > DEFAULT_JDK_VERSION . toInteger() &&
108
- ! pullRequest. labels. contains( ' jdk' ) && ! pullRequest. labels. contains( " jdk-${ buildEnv.testJdkVersion} " ) ) {
109
- return
110
- }
111
111
state[buildEnv. tag] = [:]
112
112
executions. put(buildEnv. tag, {
113
113
runBuildOnNode(buildEnv. node ?: NODE_PATTERN_BASE ) {
@@ -208,6 +208,9 @@ stage('Build') {
208
208
}
209
209
})
210
210
}
211
+ executions. put(' Hibernate Search Update Dependency' , {
212
+ build job : ' /hibernate-search-dependency-update/8.0' , propagate : true , parameters : [string(name : ' UPDATE_JOB' , value : ' orm7' ), string(name : ' ORM_REPOSITORY' , value : helper. scmSource. remoteUrl), string(name : ' ORM_PULL_REQUEST_ID' , value : helper. scmSource. pullRequest. id)]
213
+ })
211
214
parallel(executions)
212
215
}
213
216
0 commit comments