Anonymous committed e6fdcac Merge


  • Participants
  • Parent commits d7bfacd, e413392

Comments (0)

Files changed (1)

File project-config/buildbot/master.cfg

 # -*- python -*-
 # ex: set syntax=python:
+from ConfigParser import ConfigParser
+import os
+here = os.path.abspath('/home/buildbot/master')
 # This is a sample buildmaster config file. It must be installed as
 # 'master.cfg' in your buildmaster's base directory (although the filename
 # dictionary has a variety of keys to control different aspects of the
 # buildmaster. They are documented in docs/config.xhtml .
 # This is the dictionary that the buildmaster pays attention to. We also use
 # a shorter alias to save typing.
 c = BuildmasterConfig = {}
 # a BuildSlave object, which is created with bot-name, bot-password.  These
 # correspond to values given to the buildslave's mktap invocation.
 from buildbot.buildslave import BuildSlave
-c['slaves'] = [BuildSlave("bs1", "XXXX"),
-               BuildSlave("bs2", "XXXX")]
+credentials_path = os.path.join(here, '.credentials')
+credentials = ConfigParser()
+print credentials_path[credentials_path])
+c['slaves'] = [BuildSlave("bs1", credentials.get('slaves', 'bs1')),
+               BuildSlave("bs2", credentials.get('slaves', 'bs2'))]
 # 'slavePortnum' defines the TCP port to listen on. This must match the value
 # configured into the buildslaves (with their --master option)