Every time when the Jenkins server is restarted, all the pipelines stop working giving the same error:
java.lang.UnsupportedOperationException: remove
To solve this, I run the following command on the Jenkins console:
com.cloudbees.plugins.credentials.CredentialsProvider.FINGERPRINT_ENABLED=false
But for some reason, every time the server restarts it gets lost and I need to keep running this same command every time. How can I fix this permanently?
halkeye
(Gavin Mogan)
November 3, 2021, 4:51pm
2
emauricio_tasken:
FINGERPRINT_ENABLED
Looks like there’s a system property
private static final String FINGERPRINT_ENABLED_NAME = CredentialsProvider.class.getSimpleName() + ".fingerprintEnabled";
/**
* Control if the fingerprints must be used or not.
* By default they are activated and thus allow the tracking of credentials usage.
* In case of performance troubles in some weird situation, you can disable the behavior by setting it to {@code false}.
*/
@SuppressFBWarnings(value = "MS_SHOULD_BE_FINAL", justification = "Accessible via System Groovy Scripts")
@Restricted(NoExternalUse.class)
/* package-protected */ static /* not final */ boolean FINGERPRINT_ENABLED = Boolean.parseBoolean(System.getProperty(FINGERPRINT_ENABLED_NAME, "true"));
-Dcom.cloudbees.plugins.credentials.CredentialsProvider.fingerprintEnabled=false
i think?
1 Like
halkeye:
FINGERPRINT_ENABLED_NAME
Thank you! This answer give me an ideia. I put this script inside startup-properties.groovy and it works !
This article helps me: Jenkins Use Case: Jenkins Startup Script to set the System Properties | by Shashi Bhushan | The DevOps Ship | Medium