changeset 249:76b4f58df3ee

* enable a public HTML waterfall; * try to add an irc bot
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 28 Dec 2011 10:27:51 -0800
parents 2161425d0ab7
children 48bc52d51252
files autobot/config.py autobot/template.py autobot/template/master/master.cfg autobot/template/master/master.ini
diffstat 4 files changed, 17 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/config.py	Wed Dec 28 10:05:48 2011 -0800
+++ b/autobot/config.py	Wed Dec 28 10:27:51 2011 -0800
@@ -23,7 +23,7 @@
         # get global information
         master = ':master:'
         self.master = self.section_dict(master)
-        for port, default in ('slaveport', 9010), ('htmlport', 8010):
+        for port, default in ('slaveport', 9010), ('htmlport', 8010), ('publichtmlport', 8011):
             self.master[port] = int(self.master.get(port) or default)
 
         # get section information
--- a/autobot/template.py	Wed Dec 28 10:05:48 2011 -0800
+++ b/autobot/template.py	Wed Dec 28 10:27:51 2011 -0800
@@ -50,7 +50,8 @@
             Variable('os', 'buildslave os (win, mac, linux)', os_type),
             Variable('passwd', 'buildslave password', default='passwd'),
             Variable('slaveport', 'port to talk to slaves on', default=9010, cast=int),
-            Variable('htmlport', 'port for waterfall display', default=8010, cast=int)]
+            Variable('htmlport', 'port for waterfall display', default=8010, cast=int),
+            Variable('publichtmlport', 'port for public waterfall display', default=8011, cast=int)]
 
     def pre(self, variables, output):
         factory = variables.get('factories')
--- a/autobot/template/master/master.cfg	Wed Dec 28 10:05:48 2011 -0800
+++ b/autobot/template/master/master.cfg	Wed Dec 28 10:27:51 2011 -0800
@@ -101,10 +101,23 @@
 c['status'] = []
 from buildbot.status import html
 from buildbot.status.web.authz import Authz
+
+# force-build-enabled waterfall
 authz = Authz(forceBuild=True, stopBuild=True)
 c['status'].append(html.WebStatus(http_port=config.master['htmlport'],
                                   authz=authz))
 
+# public waterfall
+authz_public = Authz(forceBuild=False, stopBuild=False)
+c['status'].append(html.WebStatus(http_port=config.master['publichtmlport'],
+                                  authz=authz_public))
+
+# irc bot
+from buildbot.status import words
+c['status'].append(words.IRC(host="irc.mozilla.org", nick="autobot",
+                             channels=["#ateam"]))
+
+
 ####### PROJECT IDENTITY
 c['projectName'] = "autobot"
 c['projectURL'] = "http://buildbot.sourceforge.net/"
--- a/autobot/template/master/master.ini	Wed Dec 28 10:05:48 2011 -0800
+++ b/autobot/template/master/master.ini	Wed Dec 28 10:27:51 2011 -0800
@@ -3,6 +3,7 @@
 password  = {{passwd}}
 slaveport = {{slaveport}}
 htmlport  = {{htmlport}}
+publichtmlport = {{publichtmlport}}
 pollInterval = 30
 treeStableTimer = 30