>
> The premable to my Jenkinsfile looks like
>
> try {
>
> node("linux") {
>
> withCredentials([[$class: 'UsernamePasswordMultiBinding',
> credentialsId: 'REDACTED',
> usernameVariable: 'REDACTED_USER', passwordVariable:
> 'REDACTED_PASSWORD']]) {
>
>
>
> When I run the job without the node label, everything works fine, as it
> runs on Master.With the node specification I get a failure related to
> failed auth.
>
> My general question is do I need to do anything to make the credentials
> plugin work with slave nodes?
>
> I don't think any special handling is needed in the build agent.
Can you try this in your pipeline script ?
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId:
'jiracreds', usernameVariable: 'JIRAUser', passwordVariable: 'JIRAPwd']]) {
withEnv(["JIRA_USERNAME=${JIRAUser}",
"JIRA_PASSWORD=${JIRAPwd}",
"JIRA_TICKET=${item}"]) {
<build-script-can-use-the-env-vars>
}
}
/Ram
--
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/0314c061-7331-4737-830e-923cb70ce9cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.