OLD | NEW |
1 # This file is part of Buildbot. Buildbot is free software: you can | 1 # This file is part of Buildbot. Buildbot is free software: you can |
2 # redistribute it and/or modify it under the terms of the GNU General Public | 2 # redistribute it and/or modify it under the terms of the GNU General Public |
3 # License as published by the Free Software Foundation, version 2. | 3 # License as published by the Free Software Foundation, version 2. |
4 # | 4 # |
5 # This program is distributed in the hope that it will be useful, but WITHOUT | 5 # This program is distributed in the hope that it will be useful, but WITHOUT |
6 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | 6 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
7 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | 7 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
8 # details. | 8 # details. |
9 # | 9 # |
10 # You should have received a copy of the GNU General Public License along with | 10 # You should have received a copy of the GNU General Public License along with |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 301 |
302 try: | 302 try: |
303 # required | 303 # required |
304 schedulers = config['schedulers'] | 304 schedulers = config['schedulers'] |
305 builders = config['builders'] | 305 builders = config['builders'] |
306 slavePortnum = config['slavePortnum'] | 306 slavePortnum = config['slavePortnum'] |
307 #slaves = config['slaves'] | 307 #slaves = config['slaves'] |
308 #change_source = config['change_source'] | 308 #change_source = config['change_source'] |
309 | 309 |
310 # optional | 310 # optional |
311 db_url = config.get("db_url", | 311 db_url = config.get("db_url", "sqlite:///state.sqlite") |
312 "sqlite:///state.sqlite?serialize_access=1") | |
313 db_poll_interval = config.get("db_poll_interval", None) | 312 db_poll_interval = config.get("db_poll_interval", None) |
314 debugPassword = config.get('debugPassword') | 313 debugPassword = config.get('debugPassword') |
315 manhole = config.get('manhole') | 314 manhole = config.get('manhole') |
316 status = config.get('status', []) | 315 status = config.get('status', []) |
317 # projectName/projectURL still supported to avoid | 316 # projectName/projectURL still supported to avoid |
318 # breaking legacy configurations | 317 # breaking legacy configurations |
319 title = config.get('title', config.get('projectName')) | 318 title = config.get('title', config.get('projectName')) |
320 titleURL = config.get('titleURL', config.get('projectURL')) | 319 titleURL = config.get('titleURL', config.get('projectURL')) |
321 buildbotURL = config.get('buildbotURL') | 320 buildbotURL = config.get('buildbotURL') |
322 properties = config.get('properties', {}) | 321 properties = config.get('properties', {}) |
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1311 self.master.addChange(change) | 1310 self.master.addChange(change) |
1312 | 1311 |
1313 def addBuildset(self, **kwargs): | 1312 def addBuildset(self, **kwargs): |
1314 return self.master.addBuildset(**kwargs) | 1313 return self.master.addBuildset(**kwargs) |
1315 | 1314 |
1316 def getBuilder(self, name): | 1315 def getBuilder(self, name): |
1317 b = self.master.botmaster.builders[name] | 1316 b = self.master.botmaster.builders[name] |
1318 return BuilderControl(b, self) | 1317 return BuilderControl(b, self) |
1319 | 1318 |
1320 components.registerAdapter(Control, BuildMaster, interfaces.IControl) | 1319 components.registerAdapter(Control, BuildMaster, interfaces.IControl) |
OLD | NEW |