Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(721)

Unified Diff: scripts/slave/recipe_modules/chromite/config.py

Issue 2166673002: Pass buildbucket.build.id to cbuildbot as --buildbucket-id. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: use_json_recipe Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/slave/recipe_modules/chromite/api.py ('k') | scripts/slave/recipes/cros/cbuildbot_tryjob.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/chromite/config.py
diff --git a/scripts/slave/recipe_modules/chromite/config.py b/scripts/slave/recipe_modules/chromite/config.py
index 14a924bdd3b73fcb772690262954e01f825dcea2..eaeb4c2da4d3da2237d85a0ef18f877a47ceb57b 100644
--- a/scripts/slave/recipe_modules/chromite/config.py
+++ b/scripts/slave/recipe_modules/chromite/config.py
@@ -13,7 +13,8 @@ path_api = DEPS['path'].api
def BaseConfig(CBB_CONFIG=None, CBB_BRANCH=None, CBB_BUILD_NUMBER=None,
- CBB_DEBUG=False, CBB_CLOBBER=False, **_kwargs):
+ CBB_DEBUG=False, CBB_CLOBBER=False, CBB_BUILDBUCKET_ID=None,
+ **_kwargs):
return ConfigGroup(
# Base mapping of repository key to repository name.
repositories = Dict(value_type=Set(basestring)),
@@ -63,6 +64,9 @@ def BaseConfig(CBB_CONFIG=None, CBB_BRANCH=None, CBB_BUILD_NUMBER=None,
# Whether this Chromite version supports warm cache.
# https://chromium-review.googlesource.com/#/c/348011
supports_repo_cache = Single(bool),
+
+ # If supplied, forward to cbuildbot as '--buildbucket-id'
+ buildbucket_id = Single(basestring, empty_val=CBB_BUILDBUCKET_ID)
),
# A list of branches whose Chromite version is "old". Old Chromite
« no previous file with comments | « scripts/slave/recipe_modules/chromite/api.py ('k') | scripts/slave/recipes/cros/cbuildbot_tryjob.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698