I need help in creating a groovy template for subject in email-ext plugin. I have configured email-ext plugin to send emails on every build failure.
I want to check my build log and if it contains text 'abc' then it should set subject to 'ProjectName - failed due to abc' and if it doesn't then to 'ProjectName - failed due to xyz'