Credentials Plugin : escape characters don't work?

399 views
Skip to first unread message

Shobha Dashottar

unread,
Dec 5, 2014, 5:00:21 AM12/5/14
to jenkins...@googlegroups.com

   I am using the Credentials Plugin "username:password". I get the credentials using the "use secrets" option into the environment but the special characters are getting messed up. It appears the Plugin is not recognizing the backslash as a special character. I have a $$ in my password string and that somehow gets translated to $.

Is there a separate set of escape characters it understands.

\$\$ translates to \$\$
but \$$ translates to \$

Thanks
Shobha.

Andrew Kujtan

unread,
Dec 5, 2014, 10:17:28 AM12/5/14
to jenkins...@googlegroups.com

Judging by your output, I would hazard a guess that ‘$’ escapes the ‘$’, so to get ‘$$’ you would use ‘$$$$’, not ‘\$\$’. Just a guess though.

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ae94bdce-9a40-4918-b1a2-b5dd61d8dee8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shobha Dashottar

unread,
Dec 8, 2014, 3:22:08 AM12/8/14
to jenkins...@googlegroups.com
 Yep. I had to give 4$'s for one so a total of 8 $'s :) .


Thanks
Shobha
Reply all
Reply to author
Forward
0 new messages