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.
More on Credentials & security
What credential types does Jenkins support out of the box?BeginnerWhat is the difference between Global and System credential scope?IntermediateHow do folder-scoped credentials help multi-team controllers?IntermediateHow does Jenkins mask secrets in logs and what are its limits?AdvancedWhat authorization strategies are available?IntermediateWhat are the key permissions to understand in matrix auth?Intermediate