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: '[email protected]' <[email protected]>
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="[email protected]",
extraRecipients=["[email protected]"],
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
[email protected]
https://lists.buildbot.net/mailman/listinfo/users