-
Bug
-
Resolution: Duplicate
-
Minor
-
None
In my Pipeline script, I name credentials for the sshagent step, but when those credentials do not exist, no error happens.
node { sshagent(credentials: ['some-nonexistent-id']) { sh 'script-which-needs-ssh-credentials.sh' } }
I would have expected a typed exception (e.g. CredentialsUnavailableException) to be thrown, instead the closure happily continues and invokes the script which required the credentials
- duplicates
-
JENKINS-32104 Failing to find credentials doesn't actually fail a Workflow
- In Review
- relates to
-
JENKINS-37864 Provide some mechanism for looking up whether credentials exist in Pipeline
- Open