From 5a2d724440e09e811b83a79d7434d715281e3d1f Mon Sep 17 00:00:00 2001 From: Bruno Verachten Date: Mon, 2 Oct 2023 20:12:14 +0200 Subject: [PATCH 1/2] Add a JDK21 Jenkinsfile for ci.jenkins.io --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 8d38b97..252ca7b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,5 @@ buildPlugin(useContainerAgent: true, configurations: [ [platform: 'linux', jdk: 17], + [platform: 'linux', jdk: 21], [platform: 'windows', jdk: 11], ]) From f4b7c1b07ec582181593cd67d4dcd858032627f0 Mon Sep 17 00:00:00 2001 From: Bruno Verachten Date: Mon, 2 Oct 2023 20:59:38 +0200 Subject: [PATCH 2/2] Back to the archetype --- Jenkinsfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 252ca7b..9bdbcc7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,10 @@ -buildPlugin(useContainerAgent: true, configurations: [ - [platform: 'linux', jdk: 17], - [platform: 'linux', jdk: 21], - [platform: 'windows', jdk: 11], +/* + See the documentation for more options: + https://github.com/jenkins-infra/pipeline-library/ +*/ +buildPlugin( + useContainerAgent: true, // Set to `false` if you need to use Docker for containerized tests + configurations: [ + [platform: 'linux', jdk: 21], + [platform: 'windows', jdk: 17], ])