Details
-
Type:
Bug
-
Status: Reopened (View Workflow)
-
Priority:
Major
-
Resolution: Unresolved
-
Component/s: envinject-plugin
-
Labels:None
-
Similar Issues:
Description
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":
[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.
I've tried single quotes and double quotes, escaping with \$ and with $$, and nothing works: every time, the variable is unset. Help?
Attachments
Issue Links
- duplicates
-
JENKINS-15751 Cannot escape dollar sign in Windows environment
-
- Reopened
-
-
JENKINS-13566 EnvInject is messing around with my TEMP variable when username contains a dollar sign
-
- Resolved
-
On a linux box this can be solved placing #!/bin/bash at the beggining of the properties file.
EDIT: not even the bashline works if the options "keep jenkins enrionment variables" and "keep jenkins build variables" are checked. Without them the "$" does pass to the script