[Buildbot] #2576: set sendToInterestedUsers=True to MailNotifier not work to gerrit

Buildbot trac trac at buildbot.net
Tue May 27 01:17:13 UTC 2014


#2576: set sendToInterestedUsers=True to MailNotifier not work to gerrit
-------------------+----------------------
Reporter:  clino   |       Owner:
    Type:  defect  |      Status:  closed
Priority:  minor   |   Milestone:  0.8.+
 Version:  0.8.7   |  Resolution:  invalid
Keywords:  gerrit  |
-------------------+----------------------
Changes (by clino):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Sorry,I fogot to update this issue after I fixed with adding "lookup"
 parameter.
 (but it is not so easy to find this solution)
 {{{
         from buildbot.interfaces import IEmailLookup
         from buildbot.util import ComparableMixin
         from zope.interface import implements
         class lookup_mycompany_email(ComparableMixin):
             implements(IEmailLookup)
             def getAddress(self,user):
                 return "%s at mycompany.com"%(user)
 ...
 ...
                 mn = MailNotifier(fromaddr="buildbot at mycompany.com",
                     builders=[get_buildername(b)],
                     addLogs=False,
                     relayhost="smtp.mycompany.com",
                     #possible_modes = ("change", "failing", "passing",
 "problem", "warnings", "exception")
                     mode=("failing", "problem", "exception"),
                     sendToInterestedUsers=True,
                     lookup=lookup_mycompany_email(),
                     extraRecipients=m)

 }}}

--
Ticket URL: <http://trac.buildbot.net/ticket/2576#comment:4>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the bugs mailing list