Skip to content

Commit

Permalink
Reduce Jenkinsfile diffs to archetype (#552)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MarkEWaite authored Aug 28, 2023
1 parent 42ffb99 commit d7599d6
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/*
* See the documentation for more options:
* https://github.com/jenkins-infra/pipeline-library/
*/
buildPlugin(useContainerAgent: true, configurations: [
[platform: 'linux', jdk: 17],
[platform: 'linux', jdk: 11],
[platform: 'linux', jdk: 21, jenkins: '2.414'],
[platform: 'windows', jdk: 11],
See the documentation for more options:
https://github.com/jenkins-infra/pipeline-library/
*/
buildPlugin(
forkCount: '1C', // Run parallel tests on ci.jenkins.io for lower costs, faster feedback
useContainerAgent: true, // Set to `false` if you need to use Docker for containerized tests
configurations: [
[platform: 'linux', jdk: 21],
[platform: 'windows', jdk: 17],
])

0 comments on commit d7599d6

Please sign in to comment.