I am using Jenkins 2.46.3 on Redhat Linux 5.10 and trying to change email subject and content and need help how to write a groovy script in pre-send section of Jenkins when using Email-ext plugin to send emails as post-build action.
To test when below lines are in pre-send script section nothing happens ( maybe they are wrong) as emails are still with default subject and header. There is nothing in Jenkins.log either so unable to find what is wrong.
msg.addHeader("Importance", "High");
msg.addSubject("Test message - package built successfully");
If someone can give a few liners script to modify msg
variable that I can specify in pre-send section for testing purpose will help me understanding how to make it work.
Thanks in advance, Sachin
P.S. Not sure if Groovy plugin should be installed for pre-send script to work though installing it didn't help either.