From 068a580bd700365978329e7587874b0973fab81b Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Sat, 28 Jan 2023 13:08:41 -0700 Subject: [PATCH] Test Java 17 in CI and use container agents (#34) Modernize the Jenkinsfile so that it tests both Java 11 and Java 17 and so that it uses container agents that are faster to start and easier to maintain. --- Jenkinsfile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d88a3c1..b9ec001 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,2 +1,14 @@ -// Build the plugin using https://github.com/jenkins-infra/pipeline-library -buildPlugin() +#!/usr/bin/env groovy + +/* `buildPlugin` step provided by: https://github.com/jenkins-infra/pipeline-library */ +buildPlugin( + // Container agents start faster and are easier to administer + useContainerAgent: true, + // Show failures on all configurations + failFast: false, + // Test Java 11 with minimum Jenkins version, Java 17 with a more recent version + configurations: [ + [platform: 'linux', jdk: '11'], // Linux first for coverage report on ci.jenkins.io + [platform: 'windows', jdk: '17'], + ] +)