OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # ex: set syntax=python: | 2 # ex: set syntax=python: |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # READ THIS: | 7 # READ THIS: |
8 # See http://dev.chromium.org/developers/testing/chromium-build-infrastructure | 8 # See http://dev.chromium.org/developers/testing/chromium-build-infrastructure |
9 | 9 |
10 import socket | 10 import socket |
11 | 11 |
12 from buildbot.scheduler import Triggerable | 12 from buildbot.scheduler import Triggerable |
13 | 13 |
14 # These modules come from scripts, which must be in the PYTHONPATH. | 14 # These modules come from scripts, which must be in the PYTHONPATH. |
15 from master import master_config | 15 from master import master_config |
16 from master import master_utils | 16 from master import master_utils |
17 from master import slaves_list | 17 from master import slaves_list |
18 from master.builders_pools import BuildersPools | 18 from master.builders_pools import BuildersPools |
19 from master.factory import annotator_factory | 19 from master.factory import annotator_factory |
20 from master.factory import chromeos_factory | 20 from master.factory import chromeos_factory |
21 from master.factory import chromium_factory | 21 from master.factory import chromium_factory |
22 from master.factory import swarm_factory | 22 from master.factory import swarm_factory |
23 from master.try_job_http import TryJobHTTP | 23 from master.try_job_http import TryJobHTTP |
24 from master.try_job_rietveld import TryJobRietveld | 24 from master.try_job_rietveld import TryJobRietveld |
25 from master.try_job_svn import TryJobSubversion | 25 from master.try_job_svn import TryJobSubversion |
26 | 26 |
27 import config | 27 import config |
| 28 import master_site_config |
28 | 29 |
29 ActiveMaster = config.Master.TryServer | 30 ActiveMaster = master_site_config.TryServer |
30 | 31 |
31 | 32 |
32 MAIL_NOTIFIER = ActiveMaster.is_production_host | 33 MAIL_NOTIFIER = ActiveMaster.is_production_host |
33 UPDATE_CODEREVIEW = ActiveMaster.is_production_host | 34 UPDATE_CODEREVIEW = ActiveMaster.is_production_host |
34 LISTEN_TO_SVN = ActiveMaster.svn_url and ActiveMaster.is_production_host | 35 LISTEN_TO_SVN = ActiveMaster.svn_url and ActiveMaster.is_production_host |
35 | 36 |
36 # This is the dictionary that the buildmaster pays attention to. We also use | 37 # This is the dictionary that the buildmaster pays attention to. We also use |
37 # a shorter alias to save typing. | 38 # a shorter alias to save typing. |
38 c = BuildmasterConfig = {} | 39 c = BuildmasterConfig = {} |
39 | 40 |
(...skipping 2133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2173 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage' | 2174 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage' |
2174 | 2175 |
2175 # Buildbot master url: | 2176 # Buildbot master url: |
2176 if ActiveMaster.is_production_host: | 2177 if ActiveMaster.is_production_host: |
2177 c['buildbotURL'] = 'http://build.chromium.org/p/tryserver.chromium/' | 2178 c['buildbotURL'] = 'http://build.chromium.org/p/tryserver.chromium/' |
2178 else: | 2179 else: |
2179 c['buildbotURL'] = 'http://%s:%d/' % ( | 2180 c['buildbotURL'] = 'http://%s:%d/' % ( |
2180 socket.getfqdn(), ActiveMaster.master_port) | 2181 socket.getfqdn(), ActiveMaster.master_port) |
2181 | 2182 |
2182 # vi: set ts=4 sts=2 sw=2 et: | 2183 # vi: set ts=4 sts=2 sw=2 et: |
OLD | NEW |