Skip to content

Commit 16a30c9

Browse files
authored
Reduce Jenkinsfile diffs to archetype (jenkinsci#159)
Use the Jenkins plugin archetype as much as possible as we can so that the differences to the archetype are clear and intentionally used. Tests with Java 21 on Linux and Java 17 on Windows. Accepts that tests on Java 11 are redundant since we've not detected relevant issues that are specific to Java 11. Confirmed that tests pass on Linux with Java 17 and Java 21. Rely on ci.jenkins.io to test Windows. Includes forkCount setting because it improves test performance on ci.jenkins.io and reduces cost on ci.jenkins.io.
1 parent 6fee248 commit 16a30c9

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

Jenkinsfile

+9-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
/* `buildPlugin` step provided by: https://github.com/jenkins-infra/pipeline-library */
1+
/*
2+
See the documentation for more options:
3+
https://github.com/jenkins-infra/pipeline-library/
4+
*/
25
buildPlugin(
3-
// Run a JVM per core in tests
4-
forkCount: '1C',
5-
// Container agents start faster and are easier to administer
6-
useContainerAgent: true,
7-
// Show failures on all configurations
8-
failFast: false,
9-
// Test Java 11, 17, and 21
6+
forkCount: '1C', // Run parallel tests on ci.jenkins.io for lower costs, faster feedback
7+
useContainerAgent: true, // Set to `false` if you need to use Docker for containerized tests
108
configurations: [
11-
[platform: 'linux', jdk: '17'],
12-
[platform: 'linux', jdk: '21', jenkins: '2.414'],
13-
[platform: 'windows', jdk: '11']
14-
]
15-
)
9+
[platform: 'linux', jdk: 21],
10+
[platform: 'windows', jdk: 17],
11+
])

0 commit comments

Comments
 (0)