commit | 4b79c3870c5135c39c75822919eb76ac2d5633f4 | [log] [tgz] |
---|---|---|
author | Andrii Shyshkalov <tandrii@chromium.org> | Mon Apr 15 23:48:35 2019 +0000 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Apr 15 23:48:35 2019 +0000 |
tree | b766e0cd50ec025c685c2cba19e1472edbaf5adf | |
parent | db58954c8cb36dd41e245a982f978a1f19b16af6 [diff] [blame] |
git_cache: add OVERRIDE_BOOTSTRAP_BUCKET option. Will use used by led-triggered tests of git_cache_updater builder. Companion recipe CL: https://chromium-review.googlesource.com/c/infra/infra/+/1568156 R=hinoka Change-Id: Ib25824d4d04cfb8aa0831fc5ae666a94808b289e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1567999 Reviewed-by: Ryan Tseng <hinoka@chromium.org> Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
diff --git a/git_cache.py b/git_cache.py index 4e67767..4a2a237 100755 --- a/git_cache.py +++ b/git_cache.py
@@ -245,9 +245,14 @@ @property def bootstrap_bucket(self): + b = os.getenv('OVERRIDE_BOOTSTRAP_BUCKET') + if b: + return b u = urlparse.urlparse(self.url) if u.netloc == 'chromium.googlesource.com': return 'chromium-git-cache' + # TODO(tandrii): delete once LUCI migration is completed. + # Only public hosts will be supported going forward. elif u.netloc == 'chrome-internal.googlesource.com': return 'chrome-git-cache' # Not recognized.