Interview Prep/Jenkins/Credentials & security

How do you rotate a credential used by many pipelines?

BeginnerConceptCredentials & security
Answer

Update the value in place (same ID) so pipelines pick it up on their next run; running builds keep the old value until they finish. With JCasC, change the secret source and reload. With an external provider, rotate in Vault or Secrets Manager and Jenkins reads the new value on next lookup. Never create a new ID per rotation unless you also need to support both values during a migration.

All Jenkins questions Roadmap: Jenkins

More on Credentials & security