diff --git a/src/main/java/io/jenkins/plugins/credentials/gcp/secretsmanager/CredentialsFactory.java b/src/main/java/io/jenkins/plugins/credentials/gcp/secretsmanager/CredentialsFactory.java index 4462fdd..a68b08b 100644 --- a/src/main/java/io/jenkins/plugins/credentials/gcp/secretsmanager/CredentialsFactory.java +++ b/src/main/java/io/jenkins/plugins/credentials/gcp/secretsmanager/CredentialsFactory.java @@ -3,6 +3,7 @@ import com.cloudbees.plugins.credentials.SecretBytes; import com.cloudbees.plugins.credentials.common.StandardCredentials; import hudson.util.Secret; +import java.io.Serializable; import java.util.Map; import java.util.Optional; import java.util.function.Supplier; @@ -41,7 +42,9 @@ public static Optional create( } } - private static class SecretBytesSupplier implements Supplier { + private static class SecretBytesSupplier implements Supplier, Serializable { + + private static final long serialVersionUID = 1L; private final String id; private final transient SecretGetter secretGetter; @@ -57,7 +60,9 @@ public SecretBytes get() { } } - private static class SecretSupplier implements Supplier { + private static class SecretSupplier implements Supplier, Serializable { + + private static final long serialVersionUID = 1L; private final String id; private final transient SecretGetter secretGetter;