I have several environment variables defined for the jenkins project, among which I want to include some of the email notifications sent before and after the build was successful.
But groovy.text.Template
does not seem to accept these environment variables.
I also used "Injection environment variables for build help for reference: the function" Embed environment variables in the build process "" and defined my variable as follows
BUILD_NAME=${BUILD_NAME}
where BUILD_NAME
taken as a parameter and I am building.
Please help me with this.
source share