3
votes

In the content field of "Editable Email Notification" (Email-ext plugin in Jenkins) I would like to escape the $ sign so I can email "$WORD" which is an environment variable of the job (defined using Build Environment->Properties Content) without it being expanded to anything.
Backslashes doesn't seem to do...

Thanks!

2

2 Answers

2
votes

To escape the $, just put another $ in front of it, e.g., $$WORD.

2
votes

If you have HTML body, to literally print a dollar sign $ try $ or $