4

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!

yair
  • 659
  • 2
  • 8
  • 26

2 Answers2

6

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

slide
  • 792
  • 7
  • 9
2

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

Slav
  • 27,057
  • 11
  • 80
  • 104
  • I tried both, but the emails i then get actually contains `$` (or `$`). Or did you means to also add the ` signs? – yair May 06 '15 at 16:10
  • No, no `\`` signs, but I assumed you had HTML email body, my mistake – Slav May 06 '15 at 16:30