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

Side by Side 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, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromite/config.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 recipe_engine import recipe_api 8 from recipe_engine import recipe_api
9 9
10 10
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 if self.c.cbb.debug: 411 if self.c.cbb.debug:
412 cbb_args.extend(['--debug']) 412 cbb_args.extend(['--debug'])
413 if self.c.cbb.clobber: 413 if self.c.cbb.clobber:
414 cbb_args.extend(['--clobber']) 414 cbb_args.extend(['--clobber'])
415 if self.c.cbb.chrome_version: 415 if self.c.cbb.chrome_version:
416 cbb_args.extend(['--chrome_version', self.c.cbb.chrome_version]) 416 cbb_args.extend(['--chrome_version', self.c.cbb.chrome_version])
417 if self.c.cbb.config_repo: 417 if self.c.cbb.config_repo:
418 cbb_args.extend(['--config_repo', self.c.cbb.config_repo]) 418 cbb_args.extend(['--config_repo', self.c.cbb.config_repo])
419 if self.c.cbb.buildbucket_id: 419 if self.c.cbb.buildbucket_id:
420 cbb_args.extend(['--buildbucket-id', self.c.cbb.buildbucket_id]) 420 cbb_args.extend(['--buildbucket-id', self.c.cbb.buildbucket_id])
421 if self.c.repo_cache_dir and self.c.cbb.supports_repo_cache: 421
422 # These flags are mutually exclusive.
423 # TODO(nxia): Remove "repo_cache" support after "git_cache" has rolled out.
424 if self.c.cbb.git_cache_dir:
425 cbb_args.extend(['--git-cache-dir', self.c.cbb.git_cache_dir])
426 elif self.c.repo_cache_dir and self.c.cbb.supports_repo_cache:
422 cbb_args.extend(['--repo-cache', self.c.repo_cache_dir]) 427 cbb_args.extend(['--repo-cache', self.c.repo_cache_dir])
423 428
424 # Set the build ID, if specified. 429 # Set the build ID, if specified.
425 if self.c.cbb.build_id: 430 if self.c.cbb.build_id:
426 cbb_args.extend(['--master-build-id', self.c.cbb.build_id]) 431 cbb_args.extend(['--master-build-id', self.c.cbb.build_id])
427 432
428 # Add custom args, if there are any. 433 # Add custom args, if there are any.
429 cbb_args.extend(args) 434 cbb_args.extend(args)
430 435
431 # Run cbuildbot. 436 # Run cbuildbot.
432 return self.cbuildbot(str('cbuildbot [%s]' % (self.c.cbb.config,)), 437 return self.cbuildbot(str('cbuildbot [%s]' % (self.c.cbb.config,)),
433 self.c.cbb.config, 438 self.c.cbb.config,
434 args=cbb_args, 439 args=cbb_args,
435 cwd=self.m.path['slave_build']) 440 cwd=self.m.path['slave_build'])
OLDNEW
« 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