From 99f3a8b20c9af4906d20321cfb6f85d437f8534c Mon Sep 17 00:00:00 2001 From: Bruno Verachten Date: Mon, 2 Oct 2023 20:41:25 +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 73cfef1c..900aaf61 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,5 @@ buildPlugin(useContainerAgent: true, configurations: [ + [platform: 'linux', jdk: 21], [platform: 'linux', jdk: 17], [platform: 'linux', jdk: 11], [platform: 'windows', jdk: 11], From 39daa9bf86234bebb5524cdfc2c1222712144965 Mon Sep 17 00:00:00 2001 From: Bruno Verachten Date: Mon, 2 Oct 2023 21:07:41 +0200 Subject: [PATCH 2/2] Back to the archetype --- Jenkinsfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 900aaf61..9bdbcc7d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,10 @@ -buildPlugin(useContainerAgent: true, configurations: [ - [platform: 'linux', jdk: 21], - [platform: 'linux', jdk: 17], - [platform: 'linux', jdk: 11], - [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], ])