buildbot questions
Marko Käning
MK-MacPorts at techno.ms
Tue Aug 2 12:40:17 PDT 2011
On Aug 2, 2011, at 9:38 PM, Bradley Giesbrecht wrote:
> Having a summarized build result emailed to a mailing list (buildbot at macports.org) would be a nice start.
>
> From http://buildbot.net/buildbot/docs/current/:
>
>> For example, if only short emails are desired (e.g., for delivery to phones)
>>
>> from buildbot.status.builder import Results
>> def messageFormatter(mode, name, build, results, master_status):
>> result = Results[results]
>>
>> text = list()
>> text.append("STATUS: %s" % result.title())
>> return {
>> 'body' : "\n".join(text),
>> 'type' : 'plain'
>> }
>>
>> mn = MailNotifier(fromaddr="buildbot at example.org",
>> sendToInterestedUsers=False,
>> mode='problem',
>> extraRecipients=['listaddr at example.org'],
>> messageFormatter=messageFormatter)
Hi Brad,
yep, that's the part I was also looking at.
More information about the macports-dev
mailing list