[ https://issues.jenkins-ci.org/browse/JENKINS-13157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160547#comment-160547 ]
David Baumgold commented on JENKINS-13157: ------------------------------------------ I can give that a try. However, it doesn't really address the problem: I expect to be able to insert a literal $ by escaping it somehow. In bash, "pas$word" is treated as "pas" followed by the contents of the $word variable, but "pas\$word" is treated as the literal string "pas$word": the backslash escapes the dollar sign. Could EnvInject support escaping in the same way? (In bash, if you want to insert a literal backslash, you have to escape it as well: "a\\b" is treated as the literal string "a\b".) > EnvInject cannot inject variables whose contents contain a dollar sign ($) > -------------------------------------------------------------------------- > > Key: JENKINS-13157 > URL: https://issues.jenkins-ci.org/browse/JENKINS-13157 > Project: Jenkins > Issue Type: Bug > Components: envinject > Reporter: David Baumgold > Assignee: gbois > > If I add an variable in the Jenkins configuration with a dollar sign in the > content, then the variable is not injected. The console output says that the > variable is unset because it is "unresolved": > {code} > [EnvInject] - Executing scripts and injecting environment variables after the > SCM step. > [EnvInject] - Injecting as environment variables the properties content > ADMIN_PASS="pas$word" > [EnvInject] - Variables injected successfully. > [EnvInject] - Unset unresolved 'ADMIN_PASS' variable. > {code} > I've tried single quotes and double quotes, escaping with \$ and with $$, and > nothing works: every time, the variable is unset. Help? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira