-
Bug
-
Resolution: Unresolved
-
Major
-
None
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?
- 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
-
[JENKINS-13157] EnvInject cannot inject variables whose contents contain a dollar sign ($)
Description |
Original:
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? |
New:
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? |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |
With this king of value, EnvInject doesn't know if it is a characater or $word is a variable to resolve.
I suggest you should use an alternate: EnvInject password in the 'Prepare environment' section.
Could it suit you?