how to write groovy email template to display parsed build errors in email body

14 views
Skip to first unread message

Victoria Wei Lei

unread,
Apr 1, 2015, 2:14:15 PM4/1/15
to jenkins...@googlegroups.com

Helllo,

I am using parsed console log plugin and Email-ext plugin in Jenkins to send out daily build status, only upon build failure or compiler warnings. I would like to display the extracted error/warning message in the email body. I got groovy email template from "https://github.com/jenkinsci/email-ext-plugin/blob/master/src/main/resources/hudson/plugins/emailext/templates/groovy-html.template". It display Console Output instead of specific error/warning message want. I have zero knowledge on groovy or html et al, it gonna take me sometime to learn and able to modify the template to fulfill my need quickly.

Can someone point me a sample file that can search out either console output or parsed console output and only display the lines contain "error" or "warning"?

Any help is greatly appreciated.

Victoria Lei 

Reply all
Reply to author
Forward
0 new messages