[Buildbot-devel] how do I put the build failure output in the email notification?

zhuang liang lysisius at gmail.com
Thu Apr 23 01:40:01 UTC 2015


looks like it should be "for log in logs" instead of "for log in reversed(logs)"

> On Apr 22, 2015, at 18:28, zhuang liang <lysisius at gmail.com> wrote:
> 
> Hi Francesco,
> 
> Thanks for pointing this out. I tried out the sample but it didn't do exactly what it claimed. The log that it includes is not the last, but the first, which is not quite useful if the failed step is not the first. 
> 
> Any insight on what could be wrong in the sample config?
> I'm guessing in this part:
> """
>         # get log for last step
>         logs = build.getLogs()
>         # logs within a step are in reverse order. Search back until we find stdio
>         for log in reversed(logs):
>             if log.getName() == 'stdio':
>                 break
>         name = "%s.%s" % (log.getStep().getName(), log.getName())
>         status, dummy = log.getStep().getResults()
> 
> """
> -Strong
> 
> 
>> On Apr 22, 2015, at 09:54, Francesco Di Mizio <francescodimizio at gmail.com <mailto:francescodimizio at gmail.com>> wrote:
>> 
>> Hi,
>> 
>> if you check the documentation there's an example where part of the log gets attached to the email.
>> 
>> http://docs.buildbot.net/latest/manual/cfg-statustargets.html <http://docs.buildbot.net/latest/manual/cfg-statustargets.html>
>> 
>> Search for html_message_formatter
>> 
>> On Wed, Apr 22, 2015 at 6:36 PM, zhuang liang <lysisius at gmail.com <mailto:lysisius at gmail.com>> wrote:
>> Hi,
>> 
>> Right now I have email notification on build failure, but it doesn't show me what the failure is, just at what step. I'm wondering how I can put the stderr in the email too.
>> 
>> -Strong
>> ------------------------------------------------------------------------------
>> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
>> Develop your own process in accordance with the BPMN 2 standard
>> Learn Process modeling best practices with Bonita BPM through live exercises
>> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- <http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-> event?utm_
>> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
>> _______________________________________________
>> Buildbot-devel mailing list
>> Buildbot-devel at lists.sourceforge.net <mailto:Buildbot-devel at lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/buildbot-devel <https://lists.sourceforge.net/lists/listinfo/buildbot-devel>
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20150422/3e4a1804/attachment.html>


More information about the devel mailing list