Hi Pierre,
Thanks for the information and suggestions.

We have updated Docker via PPA in order to avail ourselves of the ability to 
map internal files to the external filesystem.

I will look into 0.9.0rc1 (though I have to admit that a .0 release makes me a 
little nerveous.)

Best,
hank

From: Pierre Tardy [mailto:[email protected]] 
Sent: Friday, August 05, 2016 11:44 AM
To: Barta, Hank <[email protected]>; [email protected]
Subject: Re: [[email protected]] Buildbot not sending email status updates

Thanks for the clarification. 
If you are starting a new bot I would definitely recommend to start with 
0.9.0rc1.
It has docker support built in and lots of better internals that will help you 
to scale when the time comes.
You can look at the Dockerfiles that we provide in the source code as a good 
start to build your own.
I would also recommend as a docker best practice to not put sendmail in the 
same docker and rather use docker compose to create your system.
Also for docker, as it is new technology I would also recommend to use the 
latest version and not the one shipped in 14.04


Le ven. 5 août 2016 18:20, Barta, Hank <[email protected]> a écrit :
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:[email protected]]
Sent: Friday, August 05, 2016 11:03 AM
To: Barta, Hank <[email protected]>; [email protected]
Subject: Re: [[email protected]] 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 <[email protected]> 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: '[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
_______________________________________________
users mailing list
[email protected]
https://lists.buildbot.net/mailman/listinfo/users

Reply via email to