Turn on email and IRC notification about build breaks
authorDan Scott <dan@coffeecode.net>
Wed, 18 May 2011 18:38:19 +0000 (14:38 -0400)
committerDan Scott <dan@coffeecode.net>
Wed, 18 May 2011 18:38:19 +0000 (14:38 -0400)
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 <dan@coffeecode.net>
examples/buildbot.cfg

index 6f7ed65..d2d74c3 100644 (file)
@@ -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