Changeset 80192
- Timestamp:
- 07/06/11 08:55:28 (4 years ago)
- File:
-
- 1 edited
-
contrib/buildbot/master.cfg (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contrib/buildbot/master.cfg
r80191 r80192 3 3 4 4 import json 5 import os 5 6 6 7 # This is a buildmaster config file. It must be installed as … … 14 15 # (where /opt/local shouldn't be messed with) and the production server (where 15 16 # it has to be) 16 production = True 17 18 production = False 19 with open(os.path.join(os.path.dirname(__file__), 'config.json')) as f: 20 production = json.load(f)['production'] 17 21 18 22 ####### BUILDSLAVES … … 25 29 c['slaves'] = [] 26 30 if production: 27 slavedata = json.load(open('slaves.json')) 31 slavedata = {} 32 with open(os.path.join(os.path.dirname(__file__), 'slaves.json')) as f: 33 slavedata = json.load(f) 28 34 for slave, pwd in slavedata.items(): 29 35 c['slaves'].append(BuildSlave(slave, pwd)) … … 47 53 if production: 48 54 from buildbot.changes.pb import PBChangeSource 49 sourcedata = json.load(open('source.json')) 55 sourcedata = [] 56 with open(os.path.join(os.path.dirname(__file__), 'source.json')) as f: 57 sourcedata = json.load(f) 50 58 c['change_source'] = PBChangeSource(user=sourcedata[0], passwd=sourcedata[1]) 51 59 else:
Note: See TracChangeset
for help on using the changeset viewer.

