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

Barta, Hank hank.barta at sandc.com
Fri Aug 5 16:20:32 UTC 2016


Hi Pierre,
Thanks for the reply.

There is no reason not to upgrade. The only reason I’m on 0.8.8 is because that is what comes stock with Ubuntu 14.04 LTS. (Unfortunately Ubuntu cannot be upgraded.)

I can upgrade given a reason. If you’re saying that email notification may not work in 0.8.8 and getting help for that is not likely due to how far behind it is, I think that is sufficient reason.

I wanted to first make sure that there was not something obvious that I was doing wrong and you did not spot anything obvious. I think that before I pursue this further I should upgrade.

Thanks,
hank

 

From: Pierre Tardy [mailto:tardyp at gmail.com] 
Sent: Friday, August 05, 2016 11:03 AM
To: Barta, Hank <hank.barta at sandc.com>; users at buildbot.net
Subject: Re: [users at bb.net] Buildbot not sending email status updates

Hi Hank.
Any reason why you won't upgrade?
0.8.8 is so antique that it is difficult for us to answer. 
Looking at your email. It looks like you are doing it right but the devil is in the details.
Without the actual Dockerfile of the worker and the relevant master.cfg snippets it's difficult for us to help.
Cheers
Pierre

Le ven. 5 août 2016 17:59, Barta, Hank <hank.barta at sandc.com> a écrit :
Let me try this again - I'm not sure it went out. (Formatting this time as plaintext vs. whatever Outlook prefers.)

In addition, I now find that the master will not startup with "mode=('all',)" even though that is a documented mode for 0.8.8.
(from http://docs.buildbot.net/0.8.8/manual/cfg-statustargets.html)

Thanks,
hank


From: Barta, Hank
Sent: Wednesday, August 03, 2016 3:50 PM
To: 'users at buildbot.net' <users at buildbot.net>
Subject: Buildbot not sending email status updates

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.
_______________________________________________
users mailing list
users at buildbot.net
https://lists.buildbot.net/mailman/listinfo/users


More information about the users mailing list