cicd
credentials
ai_generated
true
Error: Could not find credentials entry with ID 'deploy-key'
ID: cicd/jenkins-credential-not-found
91%Fix Rate
90%Confidence
50Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| any | active | — | — | — |
Root Cause
Jenkins pipeline references a credential ID that does not exist in the credentials store, or the credential is scoped to a different domain/folder and not accessible from the current pipeline context.
genericWorkarounds
-
93% success Add the credential to Jenkins credentials store with the correct ID and scope
Go to Manage Jenkins > Credentials > System > Global credentials > Add Credentials. Use the exact ID referenced in the Jenkinsfile. Choose the correct credential type (secret text, SSH key, username/password)
-
89% success Use the withCredentials block with the correct credential type binding
Match the credential type: use 'usernamePassword' for username/password, 'string' for secret text, 'sshUserPrivateKey' for SSH keys. Example: withCredentials([string(credentialsId: 'my-secret', variable: 'SECRET')])
Dead Ends
Common approaches that don't work:
-
Hardcode credentials directly in the Jenkinsfile or environment variables
95% fail
Credentials in source code are a critical security vulnerability; they are visible in build logs and version history
-
Create credentials in a subfolder expecting them to be globally available
65% fail
Jenkins credentials scoped to a folder are only available to jobs within that folder; the pipeline in a different folder cannot access them
Error Chain
Preceded by:
Frequently confused with: