diff --git a/Jenkinsfile b/Jenkinsfile index 14a9d31..cc8d42c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,13 @@ -#!/usr/bin/env groovy +/* + * See the documentation for more options: + * https://github.com/jenkins-infra/pipeline-library/ + */ +buildPlugin(useContainerAgent: true, configurations: [ + // Test the common case (i.e., a recent LTS release) on both Linux and Windows. + [ platform: 'linux', jdk: '11', jenkins: '2.361.1' ], + [ platform: 'windows', jdk: '11', jenkins: '2.361.1' ], -/* `buildPlugin` step provided by: https://github.com/jenkins-infra/pipeline-library */ -//buildPlugin() - -// Currently, container builds perform more reliably than the docker ones... so: -buildPlugin(useContainerAgent: true, platforms: ['linux']) + // Test the bleeding edge of the compatibility spectrum (i.e., the latest supported Java runtime). + // see also https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ + [ platform: 'linux', jdk: '17', jenkins: '2.361.2' ], +])