Home > database >  Jenkins email subject not translating environment vars
Jenkins email subject not translating environment vars

Time:09-30

I have a default subject set-up which uses the format,

$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!

This used to output the values of the env vars, but now just outputs the env var names.

Is there a different way of including env vars in emails now?

Thanks.

CodePudding user response:

You can try Groovy string interpolation:

${PROJECT_NAME} - Build # ${BUILD_NUMBER} - ${BUILD_STATUS}!

But as it was working before, it may be something similar to this and the suggested solution is to update the Token Macro plugin to 2.14 or later.

  • Related