Skip to content

Commit e504de2

Browse files
yrodieregsmet
authored andcommitted
HV-1805 Run the TCK with WildFly in the Jenkinsfile
1 parent f57403a commit e504de2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Jenkinsfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ stage('Configure') {
142142
condition: TestCondition.AFTER_MERGE),
143143
new JdkBuildEnvironment(version: '16', buildJdkTool: 'OpenJDK 16 Latest',
144144
condition: TestCondition.AFTER_MERGE)
145+
],
146+
wildflyTck: [
147+
new WildFlyTckBuildEnvironment(javaVersion: '8', buildJdkTool: 'OracleJDK8 Latest',
148+
condition: TestCondition.AFTER_MERGE),
149+
new WildFlyTckBuildEnvironment(javaVersion: '11', buildJdkTool: 'OpenJDK 11 Latest',
150+
condition: TestCondition.AFTER_MERGE)
145151
]
146152
])
147153

@@ -330,6 +336,21 @@ stage('Non-default environments') {
330336
})
331337
}
332338

339+
// Run the TCK with WildFly in multiple environments
340+
environments.content.wildflyTck.enabled.each { WildFlyTckBuildEnvironment buildEnv ->
341+
parameters.put(buildEnv.tag, {
342+
runBuildOnNode {
343+
helper.withMavenWorkspace(jdk: buildEnv.buildJdkTool) {
344+
mavenNonDefaultBuild buildEnv, """ \
345+
clean install \
346+
-pl tck-runner \
347+
-Dincontainer \
348+
"""
349+
}
350+
}
351+
})
352+
}
353+
333354
if (parameters.isEmpty()) {
334355
echo 'Skipping builds in non-default environments'
335356
helper.markStageSkipped()
@@ -426,6 +447,15 @@ class JdkBuildEnvironment extends BuildEnvironment {
426447
boolean requiresDefaultBuildArtifacts() { false }
427448
}
428449

450+
class WildFlyTckBuildEnvironment extends BuildEnvironment {
451+
String javaVersion
452+
String buildJdkTool
453+
@Override
454+
String getTag() { "wildfly-tck-jdk$javaVersion" }
455+
@Override
456+
boolean requiresDefaultBuildArtifacts() { true }
457+
}
458+
429459
void keepOnlyEnvironmentsMatchingFilter(String regex) {
430460
def pattern = /$regex/
431461

0 commit comments

Comments
 (0)