From 900abc38b8b98a9f4709aae7243e5385e94c60bc Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Sat, 11 Nov 2023 06:15:11 -0700 Subject: [PATCH] Test with Java 21 (#285) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Jenkinsfile | 6 +++--- pom.xml | 7 +------ .../plugins/envinject/service/EnvInjectVariableGetter.java | 1 + 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8d38b971..8d889691 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,4 @@ -buildPlugin(useContainerAgent: true, configurations: [ - [platform: 'linux', jdk: 17], - [platform: 'windows', jdk: 11], +buildPlugin(useContainerAgent: true, forkCount: '1C', configurations: [ + [platform: 'linux', jdk: 21], + [platform: 'windows', jdk: 17], ]) diff --git a/pom.xml b/pom.xml index e0d26202..9b0474f5 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.jenkins-ci.plugins plugin - 4.71 + 4.74 @@ -124,11 +124,6 @@ org.jenkins-ci.plugins script-security - - org.hamcrest - hamcrest - test - org.jenkins-ci.plugins matrix-auth diff --git a/src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectVariableGetter.java b/src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectVariableGetter.java index 7a4d0511..6641416c 100644 --- a/src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectVariableGetter.java +++ b/src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectVariableGetter.java @@ -88,6 +88,7 @@ public static Map getJenkinsSystemEnvVars(boolean forceOnMaster) /** * @deprecated Use {@link RunHelper#getBuildVariables(hudson.model.Run, hudson.EnvVars)} */ + @Deprecated public Map getBuildVariables(@NonNull AbstractBuild build, @NonNull EnvInjectLogger logger) throws EnvInjectException { return RunHelper.getBuildVariables(build, logger); }