- Create a Username/Password pair in Credentials both should contain dollar signs (for example u$er and pa$$word)
- Create a seed job in Jenkins
- Bind this credentials pair as env variables in the job
- Add "Process Job DSLs" step with the following in script:
- Run the job and see both STASH_PASSWORD and STASH_USERNAME unmasked with two dollars:
If EnvInjectBuildWrapper is enabled for the job, the result will be
As you can see, the second dollar in a pa$$word was escaped, which is also wrong.