| 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 | 6 |
| 7 from master import master_config | 7 from master import master_config |
| 8 from master import master_utils | 8 from master import master_utils |
| 9 from master.factory import remote_run_factory | 9 from master.factory import remote_run_factory |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 revision_getter = master_utils.ConditionalProperty( | 24 revision_getter = master_utils.ConditionalProperty( |
| 25 lambda build: build.getProperty('revision'), | 25 lambda build: build.getProperty('revision'), |
| 26 WithProperties('%(revision)s'), | 26 WithProperties('%(revision)s'), |
| 27 'master') | 27 'master') |
| 28 | 28 |
| 29 def m_remote_run_chromium_src(recipe, **kwargs): | 29 def m_remote_run_chromium_src(recipe, **kwargs): |
| 30 kwargs.setdefault('revision', revision_getter) | 30 kwargs.setdefault('revision', revision_getter) |
| 31 return remote_run_factory.RemoteRunFactory( | 31 return remote_run_factory.RemoteRunFactory( |
| 32 active_master=ActiveMaster, | 32 active_master=ActiveMaster, |
| 33 repository='https://chromium.googlesource.com/chromium/src.git', | 33 repository='https://chromium.googlesource.com/chromium/tools/build.git', |
| 34 recipe=recipe, | 34 recipe=recipe, |
| 35 factory_properties={'path_config': 'kitchen'}, | 35 factory_properties={'path_config': 'kitchen'}, |
| 36 use_gitiles=True, | 36 use_gitiles=True, |
| 37 **kwargs) | 37 **kwargs) |
| 38 | 38 |
| 39 defaults['category'] = '1clobber' | 39 defaults['category'] = '1clobber' |
| 40 | 40 |
| 41 # Global scheduler | 41 # Global scheduler |
| 42 S('chromium', branch='master', treeStableTimer=60) | 42 S('chromium', branch='master', treeStableTimer=60) |
| 43 | 43 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 73 ## Android | 73 ## Android |
| 74 ################################################################################ | 74 ################################################################################ |
| 75 | 75 |
| 76 B('Android', 'f_android_clobber', None, 'chromium', | 76 B('Android', 'f_android_clobber', None, 'chromium', |
| 77 notify_on_missing=True) | 77 notify_on_missing=True) |
| 78 F('f_android_clobber', m_remote_run_chromium_src('chromium')) | 78 F('f_android_clobber', m_remote_run_chromium_src('chromium')) |
| 79 | 79 |
| 80 | 80 |
| 81 def Update(_config, active_master, c): | 81 def Update(_config, active_master, c): |
| 82 return helper.Update(c) | 82 return helper.Update(c) |
| OLD | NEW |