Skip to content

Commit

Permalink
Use Jenkinsfile from archetype (#238)
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 22, 2023
1 parent 60a0881 commit 66335a5
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
#!/usr/bin/env groovy

/* `buildPlugin` step provided by: https://github.com/jenkins-infra/pipeline-library */
/*
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 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: 21], // Linux first for coverage report on ci.jenkins.io
[platform: 'linux', jdk: 21],
[platform: 'windows', jdk: 17],
]
)
])

0 comments on commit 66335a5

Please sign in to comment.