| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from buildbot.process.properties import WithProperties | 5 from buildbot.process.properties import WithProperties |
| 6 from buildbot.scheduler import Scheduler | 6 from buildbot.scheduler import Scheduler |
| 7 | 7 |
| 8 # These modules come from scripts/master, which must be in the PYTHONPATH. | 8 # These modules come from scripts/master, which must be in the PYTHONPATH. |
| 9 from master import gitiles_poller | 9 from master import gitiles_poller |
| 10 from master import master_utils | 10 from master import master_utils |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 revision_getter = master_utils.ConditionalProperty( | 69 revision_getter = master_utils.ConditionalProperty( |
| 70 lambda build: build.getProperty('revision'), | 70 lambda build: build.getProperty('revision'), |
| 71 WithProperties('%(revision)s'), | 71 WithProperties('%(revision)s'), |
| 72 'master') | 72 'master') |
| 73 | 73 |
| 74 def m_remote_run_chromium_src(recipe, **kwargs): | 74 def m_remote_run_chromium_src(recipe, **kwargs): |
| 75 kwargs.setdefault('revision', revision_getter) | 75 kwargs.setdefault('revision', revision_getter) |
| 76 return remote_run_factory.RemoteRunFactory( | 76 return remote_run_factory.RemoteRunFactory( |
| 77 active_master=ActiveMaster, | 77 active_master=ActiveMaster, |
| 78 repository='https://chromium.googlesource.com/chromium/src.git', | 78 repository='https://chromium.googlesource.com/chromium/tools/build.git', |
| 79 recipe=recipe, | 79 recipe=recipe, |
| 80 factory_properties={'path_config': 'kitchen'}, | 80 factory_properties={'path_config': 'kitchen'}, |
| 81 use_gitiles=True, | 81 use_gitiles=True, |
| 82 **kwargs) | 82 **kwargs) |
| 83 | 83 |
| 84 # ---------------------------------------------------------------------------- | 84 # ---------------------------------------------------------------------------- |
| 85 # BUILDER DEFINITIONS | 85 # BUILDER DEFINITIONS |
| 86 | 86 |
| 87 # Please contact chrome-re before changing this _google_chrome_rel builder | 87 # Please contact chrome-re before changing this _google_chrome_rel builder |
| 88 # Please keep master.chromium.perf in sync with this | 88 # Please keep master.chromium.perf in sync with this |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 # Buildbot master url: | 151 # Buildbot master url: |
| 152 # Must come before AutoSetupMaster(). | 152 # Must come before AutoSetupMaster(). |
| 153 c['buildbotURL'] = ActiveMaster.buildbot_url | 153 c['buildbotURL'] = ActiveMaster.buildbot_url |
| 154 | 154 |
| 155 # Adds common status and tools to this master. | 155 # Adds common status and tools to this master. |
| 156 master_utils.AutoSetupMaster(c, ActiveMaster, | 156 master_utils.AutoSetupMaster(c, ActiveMaster, |
| 157 public_html='../master.chromium/public_html', | 157 public_html='../master.chromium/public_html', |
| 158 templates=['../master.chromium/templates'], | 158 templates=['../master.chromium/templates'], |
| 159 tagComparator=master_poller.comparator, | 159 tagComparator=master_poller.comparator, |
| 160 enable_http_status_push=ActiveMaster.is_production_host) | 160 enable_http_status_push=ActiveMaster.is_production_host) |
| OLD | NEW |