@@ -26,43 +26,16 @@ 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
];
53
38
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
-
66
39
helper. configure {
67
40
file ' job-configuration.yaml'
68
41
// We don't require the following, but the build helper plugin apparently does
@@ -86,19 +59,15 @@ stage('Configure') {
86
59
87
60
// Avoid running the pipeline on branch indexing
88
61
if (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
92
65
}
93
66
94
67
stage(' Build' ) {
95
68
Map<String , Closure > executions = [:]
96
69
Map<String , Map<String , String > > state = [:]
97
70
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
- }
102
71
state[buildEnv. tag] = [:]
103
72
executions. put(buildEnv. tag, {
104
73
runBuildOnNode(buildEnv. node ?: NODE_PATTERN_BASE ) {
@@ -138,13 +107,6 @@ stage('Build') {
138
107
sh " ./docker_db.sh sybase"
139
108
state[buildEnv. tag][' containerName' ] = " sybase"
140
109
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 ;
148
110
}
149
111
}
150
112
stage(' Test' ) {
0 commit comments