[users at bb.net] Buildbot not sending email status updates

Barta, Hank hank.barta at sandc.com
Wed Aug 3 20:50:26 UTC 2016


Hi folks,
I'm running Buildbot 0.8.8 in a Docker container (Ubuntu 14.04 LTS) on a Linux host. I've configured postfix on the host and ssmtp inside the container to be  able to send email. I have confirmed this by sending using 'sendmail' from within the container.

I have tried to configure Buildbot to send email status updates using the following code:
# add email status notification

from buildbot.status import mail
from buildbot.status.builder import Results

def messageFormatter(mode, name, build, results, master_status):
    result = util.Results[results]

    text = list()
    text.append("STATUS: %s" % result.title())
    return {
        'body' : "\n".join(text),
        'type' : 'plain'
    }

m = mail.MailNotifier(fromaddr="codebuilder at sandc.com",
                      extraRecipients=["hank.barta at sandc.com"],
                      mode=('all',),
                      sendToInterestedUsers=False,
                      messageFormatter=messageFormatter)
c['status'].append(m)

This follows the web status notifier which does work,

I thought that this configuration would send email for any event. I can force s successful build but I get no email.

Do I have something wrong or are my expectations wrong?

Thanks!
________________________________
NOTICE OF CONFIDENTIALITY:
This message may contain information that is considered confidential and which may be prohibited from disclosure under applicable law or by contractual agreement. The information is intended solely for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the information contained in or attached to this message is strictly prohibited. If you have received this email transmission in error, please notify the sender by replying to this email and then delete it from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20160803/b4625b10/attachment.html>


More information about the users mailing list