Index: scripts/slave/recipes/cros/cbuildbot_tryjob.py |
diff --git a/scripts/slave/recipes/cros/cbuildbot_tryjob.py b/scripts/slave/recipes/cros/cbuildbot_tryjob.py |
index 87a97a2a99aa3621b18c9278df04ff8290d38a96..dc7b7f85521d188723e7c58cbf2d8309ecfcc305 100644 |
--- a/scripts/slave/recipes/cros/cbuildbot_tryjob.py |
+++ b/scripts/slave/recipes/cros/cbuildbot_tryjob.py |
@@ -39,6 +39,7 @@ _TRYJOB_DATA = """ |
def RunSteps(api): |
# The 'cbuildbot' config name to build is the name of the builder. |
cbb_config_name = api.properties.get('buildername') |
+ |
cbb = cros_chromite.Get() |
cbb_config = cbb.get(cbb_config_name) |
@@ -46,6 +47,7 @@ def RunSteps(api): |
api.chromite.configure( |
api.properties, |
_MASTER_CONFIG_MAP) |
+ api.chromite.c.cbb.config = cbb_config_name |
# Determine our build directory name. |
namebase = cbb_config_name |
@@ -54,9 +56,7 @@ def RunSteps(api): |
api.chromite.c.cbb.builddir = '%s_master' % (namebase,) |
# Run our 'cbuildbot'. |
- api.chromite.run_cbuildbot( |
- cbb_config_name, |
- tryjob=True) |
+ api.chromite.run_cbuildbot(tryjob=True) |
def GenTests(api): |