So am I understanding correctly that single quotes will (1) protect $foo > from being interpolate by Groovy but (2=) let token-macro expansion > continue to work? Is that right? > > Yes, that is correct, email-ext (really token-macro) will parse the string and find the correct $ tokens to replace.
> On IRC, I have also been advised not to use such variables but tather > those provided by Groovy directly and listed at > > In my opinion, if you are using them in email-ext, you should use the tokens, otherwise some things will be available and other things won't and you will end up with a mashup of different variable types and tokens. This causes issues with quoting and so forth that can be hard to overcome. In other places in your pipeline, you should definitely use the normal groovy variables, but I would recommend using the available tokens in email setup. Thanks, Alex -- Website: http://earl-of-code.com -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdR-T4sf6duC7HLoPso3gZOzoR0WA0aEaaCQtNybGePVg%40mail.gmail.com.