Mercurial > hg > autobot
comparison autobot/template.py @ 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 | 6023ae1d13e6 |
children | 48bc52d51252 |
comparison
equal
deleted
inserted
replaced
248:2161425d0ab7 | 249:76b4f58df3ee |
---|---|
48 templates = [os.path.join('template', 'master')] | 48 templates = [os.path.join('template', 'master')] |
49 vars = [Variable('slave', 'buildslave name', os_type or 'slave'), | 49 vars = [Variable('slave', 'buildslave name', os_type or 'slave'), |
50 Variable('os', 'buildslave os (win, mac, linux)', os_type), | 50 Variable('os', 'buildslave os (win, mac, linux)', os_type), |
51 Variable('passwd', 'buildslave password', default='passwd'), | 51 Variable('passwd', 'buildslave password', default='passwd'), |
52 Variable('slaveport', 'port to talk to slaves on', default=9010, cast=int), | 52 Variable('slaveport', 'port to talk to slaves on', default=9010, cast=int), |
53 Variable('htmlport', 'port for waterfall display', default=8010, cast=int)] | 53 Variable('htmlport', 'port for waterfall display', default=8010, cast=int), |
54 Variable('publichtmlport', 'port for public waterfall display', default=8011, cast=int)] | |
54 | 55 |
55 def pre(self, variables, output): | 56 def pre(self, variables, output): |
56 factory = variables.get('factories') | 57 factory = variables.get('factories') |
57 if factory: | 58 if factory: |
58 assert(set(factory).issubset(factories.keys())), 'Factory must be one of: ' % ', '.join(factories.keys()) | 59 assert(set(factory).issubset(factories.keys())), 'Factory must be one of: ' % ', '.join(factories.keys()) |