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

Pierre Tardy tardyp at gmail.com
Fri Aug 5 16:03:29 UTC 2016


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20160805/9da5db4f/attachment.html>


More information about the users mailing list