| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import cgi | 5 import cgi |
| 6 import re | 6 import re |
| 7 | 7 |
| 8 from slave import recipe_api | 8 from recipe_engine import recipe_api |
| 9 | 9 |
| 10 | 10 |
| 11 class ChromiteApi(recipe_api.RecipeApi): | 11 class ChromiteApi(recipe_api.RecipeApi): |
| 12 chromite_url = 'https://chromium.googlesource.com/chromiumos/chromite.git' | 12 chromite_url = 'https://chromium.googlesource.com/chromiumos/chromite.git' |
| 13 manifest_url = 'https://chromium.googlesource.com/chromiumos/manifest.git' | 13 manifest_url = 'https://chromium.googlesource.com/chromiumos/manifest.git' |
| 14 repo_url = 'https://chromium.googlesource.com/external/repo.git' | 14 repo_url = 'https://chromium.googlesource.com/external/repo.git' |
| 15 chromite_subpath = 'chromite' | 15 chromite_subpath = 'chromite' |
| 16 | 16 |
| 17 # The number of Gitiles attempts to make before giving up. | 17 # The number of Gitiles attempts to make before giving up. |
| 18 _GITILES_ATTEMPTS = 10 | 18 _GITILES_ATTEMPTS = 10 |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 gclient_config=self.gclient_config(), | 320 gclient_config=self.gclient_config(), |
| 321 update_presentation=False, | 321 update_presentation=False, |
| 322 force=True) | 322 force=True) |
| 323 | 323 |
| 324 # Run cbuildbot. | 324 # Run cbuildbot. |
| 325 return self.cbuildbot(str('cbuildbot [%s]' % (config,)), | 325 return self.cbuildbot(str('cbuildbot [%s]' % (config,)), |
| 326 config, | 326 config, |
| 327 args=cbb_args, | 327 args=cbb_args, |
| 328 chromite_path=self.m.path['checkout'], | 328 chromite_path=self.m.path['checkout'], |
| 329 cwd=self.m.path['slave_root']) | 329 cwd=self.m.path['slave_root']) |
| OLD | NEW |