Re: MailNotifier and logfiles with Gnome Build Brigade?



Hi,

Thank you very much for your fast reply!

On Wed, February 4, 2009 11:25, API wrote:
> From: "Johannes Ring" <johannr simula no>
>
>> 1. When a build fails I would like that an email is sent out to the
>> project's mailing list. Is there a way to do this with the Gnome Build
>> Brigade? Is it possible to use Buildbots MailNotifier class somehow?
>
> Yes, you should be able to do that, if fact this is the most useful use of
> the
> MailNotifier, IMHO. I have not tested it after the move to jhbuild svn,
> but this
> should still works. On the master.cfg, you have something like that:
>
>    c['status'] = []
>
> You could define a lists of mails per projects, something like that:
>
>   # mailNotify hashmap: put the list of emails to whom the compilation
> failures will be sent to
>   # mailNotify['project'] = ['email1 server com', 'email2 server com']
>
> And then add some notifiers, something like that:
>
>   if mailNotify.has_key(project):
>     c['status'].append(MailNotifier(fromaddr=mailFrom,mode='failing',
>                                     addLogs=True,relayhost=mailServer,
>                                     sendToInterestedUsers=False,
>                                     extraRecipients=mailNotify[project]))

I have tried something similar earlier but couldn't get it to work. Now I
managed to get it to work, however, not exactly as I wanted. What I would
like is that if for instance project A failed then an email is sent to A's
mailing list and if project B failed then an email is sent to B's mailing
list. Now it is like that if A fails then an email is sent to both A and
B's mailing list which is not very nice since B does not want to know that
A has failed. Is this possible?

Thanks again,

Johannes




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]