@@ -26,43 +26,16 @@ this.helper = new JobHelper(this)
2626helper. runWithNotification {
2727stage(' Configure' ) {
2828 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 ),
4229 new BuildEnvironment ( node : ' s390x' ),
43- new BuildEnvironment ( dbName : ' tidb' , node : ' tidb' ,
44- notificationRecipients : ' tidb_hibernate@pingcap.com' ),
30+ new BuildEnvironment ( dbName : ' sybase_jconn' ),
4531 new BuildEnvironment ( testJdkVersion : ' 17' ),
32+ new BuildEnvironment ( testJdkVersion : ' 21' ),
4633 // We want to enable preview features when testing newer builds of OpenJDK:
4734 // even if we don't use these features, just enabling them can cause side effects
4835 // and it's useful to test that.
49- new BuildEnvironment ( testJdkVersion : ' 20' , testJdkLauncherArgs : ' --enable-preview' ),
50- new BuildEnvironment ( testJdkVersion : ' 21' , testJdkLauncherArgs : ' --enable-preview' ),
5136 new BuildEnvironment ( testJdkVersion : ' 22' , testJdkLauncherArgs : ' --enable-preview' )
5237 ];
5338
54- if ( env. CHANGE_ID ) {
55- if ( pullRequest. labels. contains( ' cockroachdb' ) ) {
56- this . environments. add( new BuildEnvironment ( dbName : ' cockroachdb' , node : ' cockroachdb' , longRunning : true ) )
57- }
58- if ( pullRequest. labels. contains( ' hana' ) ) {
59- this . environments. add( new BuildEnvironment ( dbName : ' hana_cloud' , dbLockableResource : ' hana-cloud' , dbLockResourceAsHost : true ) )
60- }
61- if ( pullRequest. labels. contains( ' sybase' ) ) {
62- this . environments. add( new BuildEnvironment ( dbName : ' sybase_jconn' ) )
63- }
64- }
65-
6639 helper. configure {
6740 file ' job-configuration.yaml'
6841 // We don't require the following, but the build helper plugin apparently does
@@ -86,19 +59,15 @@ stage('Configure') {
8659
8760// Avoid running the pipeline on branch indexing
8861if (currentBuild. getBuildCauses(). toString(). contains(' BranchIndexingCause' )) {
89- print " INFO: Build skipped due to trigger being Branch Indexing"
90- currentBuild. result = ' ABORTED '
91- return
62+ print " INFO: Build skipped due to trigger being Branch Indexing"
63+ currentBuild. result = ' NOT_BUILT '
64+ return
9265}
9366
9467stage(' Build' ) {
9568 Map<String , Closure > executions = [:]
9669 Map<String , Map<String , String > > state = [:]
9770 environments. each { BuildEnvironment buildEnv ->
98- // Don't build environments for newer JDKs when this is a PR
99- if ( helper. scmSource. pullRequest && buildEnv. testJdkVersion ) {
100- return
101- }
10271 state[buildEnv. tag] = [:]
10372 executions. put(buildEnv. tag, {
10473 runBuildOnNode(buildEnv. node ?: NODE_PATTERN_BASE ) {
@@ -138,13 +107,6 @@ stage('Build') {
138107 sh " ./docker_db.sh sybase"
139108 state[buildEnv. tag][' containerName' ] = " sybase"
140109 break ;
141- case " cockroachdb" :
142- docker. withRegistry(' https://index.docker.io/v1/' , ' hibernateci.hub.docker.com' ) {
143- docker. image(' cockroachdb/cockroach:v23.1.8' ). pull()
144- }
145- sh " ./docker_db.sh cockroachdb"
146- state[buildEnv. tag][' containerName' ] = " cockroach"
147- break ;
148110 }
149111 }
150112 stage(' Test' ) {
0 commit comments