Hello

How can I pass the username and password to my a custom application in the 
pipeline?
I have username and password added as credentials and am using this code:

withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 
'usrid', passwordVariable: 'USR', usernameVariable: 'PWD']]) {
bat '''
echo off
Query.exe -u %USR% -p %PWD%
'''
}

my application fails with the message: 'invalid user "****"'

thank you.

-- 
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/83db8bfd-0a25-4453-a179-ba560b2bec28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to