Skip to content

Commit 8a892fd

Browse files
committed
Run tests with multiple cores in CI
1 parent 5adac0e commit 8a892fd

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

Jenkinsfile

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1-
// Builds a module using https://github.com/jenkins-infra/pipeline-library
2-
buildPlugin(useContainerAgent: true, configurations: [
3-
[platform: 'linux', jdk: 17],
4-
[platform: 'windows', jdk: 11, jenkins: '2.407'],
5-
])
1+
#!/usr/bin/env groovy
2+
3+
/* `buildPlugin` step provided by: https://github.com/jenkins-infra/pipeline-library */
4+
buildPlugin(
5+
// Run a JVM per core in tests
6+
forkCount: '1C',
7+
// Container agents start faster and are easier to administer
8+
useContainerAgent: true,
9+
// Show failures on all configurations
10+
failFast: false,
11+
// Test Java 11 and Java 17
12+
configurations: [
13+
[platform: 'linux', jdk: '17'], // Linux first for coverage report on ci.jenkins.io
14+
[platform: 'windows', jdk: '11'],
15+
]
16+
)

0 commit comments

Comments
 (0)