Hi Cyrille,

For cloning repositories I use the credentialsId, like:

checkout changelog: true, poll: true, scm: [$class: 'GitSCM', branches: 
[[name: 'remotes/origin/master']], userRemoteConfigs: [[credentialsId: 
'6ab75e78-83c6-423f-97ce-3198c52211a7', url: 'https://github.com/XXXXX']]]

You can find the ID in URL line if you open the Jenkins page holding the 
credentials.


I think I've seen a ticket in JIRA about specifying these via usernames but 
they were not yet resolved.

Regards,
Timur

вторник, 20 января 2015 г., 1:59:18 UTC+3 пользователь Cyrille Le Clerc 
написал:
>
> Dear community,
>
> Could someone explain me how to retrieve in a Jenkins workflow a password 
> that has been declared as a username/password in the Jenkins Credentials 
> store?
>
> Is it possible to use the Credentials Binding Plugin 
> <https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Binding+Plugin> 
> in a workflow? Does this plugin need to be updated to work in a workflow?
>
> Cyrille
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4dc86064-1357-4479-9be9-28118f50cf8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to