Interview Prep/CI/CD/Jenkins Shared Libraries, Credentials and Security

Credentials in Jenkins were rotated, but pipelines still use the old value. What went wrong?

BeginnerScenarioJenkins Shared Libraries, Credentials and Security
Answer

Situation read → Credential referenced in multiple places or copied.

What I'd do →

  1. Look up all usages with the Credentials Binding usage or search credentialsId across repos.
  2. Update the credential in place, keeping the same ID, so pipelines pick up the new value.
  3. Check agents or jobs that cached it in env vars, files or Docker config (~/.docker/config.json).

Why → Using one ID per secret decouples rotation from pipeline edits.

Interview tip → Rotation should be automated and tested, not a heroic event.

All CI/CD questions

More on Jenkins Shared Libraries, Credentials and Security