Interview Prep/Jenkins/Credentials, permissions & script approval

`ERROR: Could not find credentials entry with ID 'dockerhub'`

BeginnerTroubleshootingCredentials, permissions & script approval
Answer

Likely causes → The ID is wrong, the credential is in a different folder, or it is System-scoped (not usable by jobs).

Diagnose → Check credentials at global and folder levels; verify scope is Global.

Fix → Move or recreate the credential in the job's folder (or a parent) with Global scope; correct the ID.

Prevent → Define credentials in JCasC with consistent IDs documented in the library.

All Jenkins questions Roadmap: Jenkins

More on Credentials, permissions & script approval