Thank you so much for you input, let me do some experiments.
Victoria
On Wednesday, April 1, 2015 at 2:26:18 PM UTC-5, slide wrote:
>
> You would probably just want to modify the template where it outputs the
> lines from the console to match for specific things like "error:" or
> whatever your error messages look like. I've done something similar to
> highlight warnings and errors from GCC output. It's below:
>
> <!-- CONSOLE OUTPUT -->
> <%
> if(build.result == hudson.model.Result.FAILURE) {
> %>
> <TABLE width="100%" cellpadding="0" cellspacing="0">
> <TR><TD class="bg1"><B>CONSOLE OUTPUT</B></TD></TR>
> <%
> build.getLog(100).each() { line ->
> def styleName = line.matches('.*warning:.*') ? 'warning' :
> (line.matches('.*error:.*') || line.matches('.*undefined reference.*') ||
> line.matches('.*Error:.*')) ? 'error' : 'normal'
> %>
> <TR><TD
> class="console_${styleName}"><pre>${line}</pre></TD></TR>
> <%
> }
> %> </TABLE>
> <BR/>
> <% } %>
>
> On Wed, Apr 1, 2015 at 11:11 AM Victoria Wei Lei <[email protected]
> <javascript:>> wrote:
>
>>
>> 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
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/jenkinsci-users/71d20ed6-fe68-409c-8f2d-
>> 4da254aa1d1c%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/71d20ed6-fe68-409c-8f2d-4da254aa1d1c%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/e9794dff-0aed-4119-9ae4-312464d44ca9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.