Skip to content

Commit

Permalink
Use Jenkinsfile from archetype (#238) (#211)
Browse files Browse the repository at this point in the history
Use the Jenkinsfile from the plugin archetype in order to reduce
differences throughout the Jenkins organization.

The Jenkinsfile from the plugin archetype is extended to run tests in
parallel in order to reduce the time and cost of tests.

jenkinsci/archetypes#650 describes the
alternatives for Jenkinsfile configurations.
  • Loading branch information
MarkEWaite authored Sep 23, 2023
1 parent 6fdb370 commit f17fd68
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
// Specify configurations explicitly to test against newer LTS.
// See also https://github.com/jenkins-infra/pipeline-library/pull/145

/*
See the documentation for more options:
https://github.com/jenkins-infra/pipeline-library/
*/
buildPlugin(
// Run a JVM per core in tests
forkCount: '1C',
// Container agents start faster and are easier to administer
useContainerAgent: true,
// Show failures on all configurations
failFast: false,
// Test Java 11, 17, and 21
forkCount: '1C', // Run a JVM per core in tests
useContainerAgent: true, // Set to `false` if you need to use Docker for containerized tests
configurations: [
[platform: 'linux', jdk: '17'], // Linux first for coverage report on ci.jenkins.io
[platform: 'linux', jdk: '21', jenkins: '2.414'],
[platform: 'windows', jdk: '11'],
]
)
[platform: 'linux', jdk: 21],
[platform: 'windows', jdk: 17],
])

0 comments on commit f17fd68

Please sign in to comment.