-
Bug
-
Resolution: Fixed
-
Major
It's possible to look-up User-scoped credentials in Freestyle jobs with Bindings. The same seems not to work in pipeline jobs.
node { withCredentials([[$class : 'UsernamePasswordMultiBinding', credentialsId: 'bc047678-37b8-4747-95d8-c1a8b3df51a6', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) { echo "${env.USERNAME}" } }
org.jenkinsci.plugins.credentialsbinding.impl.CredentialNotFoundException: bc047678-37b8-4747-95d8-c1a8b3df51a6 at org.jenkinsci.plugins.credentialsbinding.MultiBinding.getCredentials(MultiBinding.java:124) at org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding.bind(UsernamePasswordMultiBinding.java:68) at org.jenkinsci.plugins.credentialsbinding.impl.BindingStep$Execution.start(BindingStep.java:92)
Plugin versions:
credentials-binding: 1.9
credentials: 2.1.5
- is related to
-
JENKINS-44772 User Scoped credentials are not used by the "withCredentials" pipeline step
- Open
-
JENKINS-47699 Cannot use user-scoped credentials from pipeline input step parameters
- Resolved
- relates to
-
JENKINS-44774 User Scoped credentials don't appear in credentials drop down lists
- Resolved
-
JENKINS-58170 Allow credential parameters to shadow credential ids in lookup
- Resolved
- links to
(1 links to)