buildbot configuration: add mail notification, explicit builder name
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 27 Jan 2011 04:12:37 +0000 (04:12 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 27 Jan 2011 04:12:37 +0000 (04:12 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2153 9efc2488-bf62-4759-914b-345cdb29e865

examples/buildbot.cfg

index c31cfa4..415baea 100644 (file)
@@ -41,7 +41,7 @@ from buildbot.scheduler import Scheduler
 c['schedulers'] = []
 c['schedulers'].append(Scheduler(name="all", branch=None,
                                  treeStableTimer=None,
-                                 builderNames=["maker"]))
+                                 builderNames=["osrf-trunk-ubuntu-10.04-x86_64"]))
 
 ####### BUILDERS
 
@@ -109,7 +109,7 @@ from buildbot.config import BuilderConfig
 
 c['builders'] = []
 c['builders'].append(
-    BuilderConfig(name="maker",
+    BuilderConfig(name="osrf-trunk-ubuntu-10.04-x86_64",
       slavenames=["opensrf-slave"],
       factory=factory))
 
@@ -139,6 +139,15 @@ authz_cfg=authz.Authz(
 )
 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"])
+c['status'].append(mn)
+
 ####### PROJECT IDENTITY
 
 # the 'projectName' string will be used to describe the project that this
@@ -155,7 +164,7 @@ c['projectURL'] = "http://evergreen-ils.org/"
 # with an externally-visible host name which the buildbot cannot figure out
 # without some help.
 
-c['buildbotURL'] = "http://localhost:8010/"
+c['buildbotURL'] = "http://testing.evergreen-ils.org/buildbot/"
 
 ####### DB URL