Sorry, I missunderstood this code. The example is good for me. This thread is closed now.
El miércoles, 31 de agosto de 2016, 12:22:32 (UTC+2), Ramón Rial escribió: > > 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/da09a20a-e608-4e44-b344-8dd6575dac73%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
