Automation · Jenkins
Credentials
Cheat sheet · https://pcornel.dk/topic.php?topic=5543
Answer
Jenkins credentials store passwords, SSH keys, tokens and certificates encrypted on the controller, used in pipelines with withCredentials or credentials() so they are masked in logs.
Remember
- Credentials are stored encrypted on the controller.
- withCredentials binds them and masks output.
- Scope credentials to folders where possible.
First checks
- Credentials store (scoped folder credentials) — storage
- withCredentials usage — injection
- Credential audit/rotation — hygiene
Verify in this order
credential ID → withCredentials → masked env
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5543