I have stored some credentials in my Jenkins with the help of the 
Credentials plugin.
These credentials are stored at Global 
(jenkins/credentials/store/system/domain/_).

I know that with *withCredentials* I can set credentials to use as 
environment variables as in the followin example (extracted from 
https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Binding+Plugin):

node {
    withCredentials([[$class: 'UsernamePasswordMultiBinding', 
credentialsId: 'amazon',
                            usernameVariable: 'USERNAME', passwordVariable: 
'PASSWORD']]) {
    }
}

But how can I retrieve the credentials from Jenkins and how can I use them 
in similar way as previous example?
If I stored the credentials (Credentials plugin asks for Username and 
Password), is mandatory to specify the usernameVariable and 
passwordVariable as in previous example?

Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" 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-dev/482da863-d560-44b2-a6cd-e63c065785e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to