@@ -46,13 +46,13 @@ stage('Configure') {
46
46
// We want to enable preview features when testing newer builds of OpenJDK:
47
47
// even if we don't use these features, just enabling them can cause side effects
48
48
// and it's useful to test that.
49
- new BuildEnvironment ( testJdkVersion : ' 23' , testJdkLauncherArgs : ' --enable-preview' , skipJacoco : true ),
50
- new BuildEnvironment ( testJdkVersion : ' 24' , testJdkLauncherArgs : ' --enable-preview' , skipJacoco : true ),
49
+ new BuildEnvironment ( testJdkVersion : ' 23' , testJdkLauncherArgs : ' --enable-preview' , additionalOptions : ' -PskipJacoco= true' ),
50
+ new BuildEnvironment ( testJdkVersion : ' 24' , 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.
53
53
// Make sure to remove that argument as soon as possible
54
54
// -- generally that requires upgrading bytebuddy after the JDK goes GA.
55
- new BuildEnvironment ( testJdkVersion : ' 25' , testJdkLauncherArgs : ' --enable-preview -Dnet.bytebuddy.experimental=true' , skipJacoco : true ),
55
+ new BuildEnvironment ( testJdkVersion : ' 25' , testJdkLauncherArgs : ' --enable-preview -Dnet.bytebuddy.experimental=true' , additionalOptions : ' -PskipJacoco= true' ),
56
56
];
57
57
58
58
if ( env. CHANGE_ID ) {
@@ -143,10 +143,6 @@ stage('Build') {
143
143
state[buildEnv. tag][' additionalOptions' ] = state[buildEnv. tag][' additionalOptions' ] +
144
144
" -Pci.node=${ buildEnv.node} "
145
145
}
146
- if ( buildEnv. skipJacoco ) {
147
- state[buildEnv. tag][' additionalOptions' ] = state[buildEnv. tag][' additionalOptions' ] +
148
- " -PskipJacoco=true"
149
- }
150
146
state[buildEnv. tag][' containerName' ] = null ;
151
147
stage(' Checkout' ) {
152
148
checkout scm
@@ -233,7 +229,6 @@ class BuildEnvironment {
233
229
String additionalOptions
234
230
String notificationRecipients
235
231
boolean longRunning
236
- boolean skipJacoco
237
232
238
233
String toString () { getTag() }
239
234
String getTag () { " ${ node ? node + "_" : ''}${ testJdkVersion ? 'jdk_' + testJdkVersion + '_' : '' }${ dbName} " }
0 commit comments