From b9a3ff2ca433f0863cae8e0bf6d5dc213450a534 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Wed, 18 May 2011 14:38:19 -0400 Subject: [PATCH] Turn on email and IRC notification about build breaks Buildbot can notify us when a build breaks via email and IRC. Now that everything is green on testing.evergreen-ils.org, let's turn that capability on. As configured, we should only be notified when a build goes from success to failure, the first time; and then again, when a build goes from failure to success. Email notification should go to "interested users" - all of the email addresses in the collected signed-off-by / author tags in the commits for a given build. Signed-off-by: Dan Scott --- examples/buildbot.cfg | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/examples/buildbot.cfg b/examples/buildbot.cfg index 6f7ed65..d2d74c3 100644 --- a/examples/buildbot.cfg +++ b/examples/buildbot.cfg @@ -294,14 +294,28 @@ c['status'].append(html.WebStatus(http_port=8010, authz=authz_cfg)) # Send mail when a build is broken from buildbot.status.mail import MailNotifier -mn = MailNotifier( - fromaddr="buildbot@testing.esilibrary.com", - sendToInterestedUsers=False, - mode='problem', - extraRecipients=["dan@coffeecode.net","open-ils-dev@list.georgialibraries.org"]) +MN = MailNotifier( + fromaddr="buildbot@testing.evergreen-ils.org", + sendToInterestedUsers=True, + mode='problem' +# , extraRecipients=["dan@coffeecode.net","open-ils-dev@list.georgialibraries.org"] +) # Uncomment to actually send mail -# c['status'].append(mn) +c['status'].append(MN) + +### IRCBOT +from buildbot.status import words +IRC = words.IRC("chat.freenode.net", "egbuilder", + channels=["#evergreen"], + password="XXX", + allowForce=False, + notify_events={ + 'exception': 1, + 'successToFailure': 1, + 'failureToSuccess': 1, + }) +c['status'].append(IRC) ####### PROJECT IDENTITY -- 2.43.2