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

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

Issue 2365023002: Enable --git-cache-dir option in chromite/cbuildbot. (Closed)
Patch Set: Better min branch. Created 4 years, 3 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 | « no previous file | scripts/slave/recipe_modules/chromite/config.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/chromite/api.py
diff --git a/scripts/slave/recipe_modules/chromite/api.py b/scripts/slave/recipe_modules/chromite/api.py
index 1878da36a5362ded803e31460b9291e23441bd6b..7665b644d5cccd9e50712c0fc0c8ad29f230fa36 100644
--- a/scripts/slave/recipe_modules/chromite/api.py
+++ b/scripts/slave/recipe_modules/chromite/api.py
@@ -418,7 +418,12 @@ class ChromiteApi(recipe_api.RecipeApi):
cbb_args.extend(['--config_repo', self.c.cbb.config_repo])
if self.c.cbb.buildbucket_id:
cbb_args.extend(['--buildbucket-id', self.c.cbb.buildbucket_id])
- if self.c.repo_cache_dir and self.c.cbb.supports_repo_cache:
+
+ # These flags are mutually exclusive.
+ # TODO(nxia): Remove "repo_cache" support after "git_cache" has rolled out.
+ if self.c.cbb.git_cache_dir:
+ cbb_args.extend(['--git-cache-dir', self.c.cbb.git_cache_dir])
+ elif self.c.repo_cache_dir and self.c.cbb.supports_repo_cache:
cbb_args.extend(['--repo-cache', self.c.repo_cache_dir])
# Set the build ID, if specified.
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromite/config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698