diff --git a/pom.xml b/pom.xml
index d60932d3..c08115fb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
org.jenkins-ci.plugins
plugin
- 4.80
+ 5.7
de.taimos
@@ -23,7 +23,7 @@
io.jenkins.tools.bom
bom-${jenkins.baseline}.x
- 2928.ved44ea_84e034
+ 4051.v78dce3ce8b_d6
import
pom
@@ -32,8 +32,9 @@
The Apache Software License, Version 2.0
- http://www.apache.org/licenses/LICENSE-2.0.txt
- repo
+ https://www.apache.org/licenses/LICENSE-2.0.txt
+ repo
+
https://github.com/jenkinsci/${project.artifactId}-plugin
@@ -79,8 +80,8 @@
1.46
-SNAPSHOT
- 2.414
- ${jenkins.baseline}.3
+ 2.479
+ ${jenkins.baseline}.1
jenkinsci/${project.artifactId}-plugin
@@ -88,14 +89,13 @@
org.apache.maven.plugins
maven-checkstyle-plugin
- 3.0.0
+ 3.6.0
validate
validate
checkstyle.xml
- UTF-8
true
true
@@ -246,11 +246,9 @@
3.25.3
test
-
- net.bytebuddy
- byte-buddy
- 1.14.12
+ io.jenkins.plugins
+ byte-buddy-api
test
diff --git a/src/main/java/de/taimos/pipeline/aws/AWSClientFactory.java b/src/main/java/de/taimos/pipeline/aws/AWSClientFactory.java
index abb4fd4d..b0775ea9 100644
--- a/src/main/java/de/taimos/pipeline/aws/AWSClientFactory.java
+++ b/src/main/java/de/taimos/pipeline/aws/AWSClientFactory.java
@@ -41,6 +41,7 @@
import org.kohsuke.accmod.restrictions.NoExternalUse;
import java.io.IOException;
+import java.io.Serial;
import java.io.Serializable;
@@ -106,11 +107,11 @@ private static ClientConfiguration getClientConfiguration(EnvVars vars) {
ClientConfiguration clientConfiguration = new ClientConfiguration();
// The default SDK max retry is 3, increasing this to be more resilient to upstream errors
- Integer retries = Integer.valueOf(vars.get(AWS_SDK_RETRIES, "10"));
+ int retries = Integer.parseInt(vars.get(AWS_SDK_RETRIES, "10"));
clientConfiguration.setRetryPolicy(new RetryPolicy(null, null, retries, false));
// The default SDK socket timeout is 50000, use as deafult and allow to override via environment variable
- Integer socketTimeout = Integer.valueOf(vars.get(AWS_SDK_SOCKET_TIMEOUT, "50000"));
+ int socketTimeout = Integer.parseInt(vars.get(AWS_SDK_SOCKET_TIMEOUT, "50000"));
clientConfiguration.setSocketTimeout(socketTimeout);
ProxyConfiguration.configure(vars, clientConfiguration);
@@ -129,7 +130,7 @@ private static AWSCredentialsProvider getCredentials(EnvVars vars, StepContext c
}
if (context != null) {
- if (PluginImpl.getInstance().isEnableCredentialsFromNode() || Boolean.valueOf(vars.get(AWS_PIPELINE_STEPS_FROM_NODE))) {
+ if (PluginImpl.getInstance().isEnableCredentialsFromNode() || Boolean.TRUE.equals(Boolean.valueOf(vars.get(AWS_PIPELINE_STEPS_FROM_NODE)))) {
try {
return AWSClientFactory.getCredentialsFromNode(context, vars);
} catch (Exception e) {
@@ -189,6 +190,7 @@ private static Region getRegion(EnvVars vars) {
return Region.getRegion(Regions.DEFAULT_REGION);
}
+ @Serial
private static final long serialVersionUID = 1L;
@Restricted(NoExternalUse.class)
diff --git a/src/main/java/de/taimos/pipeline/aws/AWSCredentialsProviderCallable.java b/src/main/java/de/taimos/pipeline/aws/AWSCredentialsProviderCallable.java
index 175db6f9..bc1b8540 100644
--- a/src/main/java/de/taimos/pipeline/aws/AWSCredentialsProviderCallable.java
+++ b/src/main/java/de/taimos/pipeline/aws/AWSCredentialsProviderCallable.java
@@ -30,6 +30,7 @@
import java.io.File;
import java.io.IOException;
+import java.io.Serial;
/*
* Use the FilePath abstraction to execute code on the remote node
@@ -51,6 +52,7 @@ public SerializableAWSCredentialsProvider invoke(File f, VirtualChannel vc) thro
return new SerializableAWSCredentialsProvider(provider);
}
+ @Serial
private static final long serialVersionUID = 1L;
}
diff --git a/src/main/java/de/taimos/pipeline/aws/AWSIdentityStep.java b/src/main/java/de/taimos/pipeline/aws/AWSIdentityStep.java
index 9040b4ba..f8d53488 100644
--- a/src/main/java/de/taimos/pipeline/aws/AWSIdentityStep.java
+++ b/src/main/java/de/taimos/pipeline/aws/AWSIdentityStep.java
@@ -21,11 +21,12 @@
package de.taimos.pipeline.aws;
+import java.io.Serial;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
-import javax.annotation.Nonnull;
+import jakarta.annotation.Nonnull;
import org.jenkinsci.plugins.workflow.steps.Step;
import org.jenkinsci.plugins.workflow.steps.StepContext;
@@ -94,6 +95,7 @@ protected Map run() throws Exception {
return info;
}
+ @Serial
private static final long serialVersionUID = 1L;
}
diff --git a/src/main/java/de/taimos/pipeline/aws/AwsSdkResponseToJson.java b/src/main/java/de/taimos/pipeline/aws/AwsSdkResponseToJson.java
index a89e1aba..deb5260b 100644
--- a/src/main/java/de/taimos/pipeline/aws/AwsSdkResponseToJson.java
+++ b/src/main/java/de/taimos/pipeline/aws/AwsSdkResponseToJson.java
@@ -18,7 +18,7 @@ public static Map convertToMap(Object o) throws IOException {
//convert to json so the method calls do not have to be
ObjectMapper objectMapper = new ObjectMapper();
String jsonResult = objectMapper.writer().writeValueAsString(o);
- return objectMapper.readValue(jsonResult, new TypeReference