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

Unified Diff: bin/cbuildbot.py

Issue 3110027: Keep repo using http on incremental builds (Closed) Base URL: ssh://git@chromiumos-git//crosutils.git
Patch Set: Created 10 years, 4 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 | bin/cros_repo_sync_all.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/cbuildbot.py
diff --git a/bin/cbuildbot.py b/bin/cbuildbot.py
index 9ea7270ee29c5b121e0d97c3e757babe28b3f0f9..2c14f3124aabb9b7ca61f84fd209d36f728970c1 100755
--- a/bin/cbuildbot.py
+++ b/bin/cbuildbot.py
@@ -53,10 +53,16 @@ def MakeDir(path, parents=False):
else:
raise
-def RepoSync(buildroot, retries=_DEFAULT_RETRIES):
+def RepoSync(buildroot, rw_checkout, retries=_DEFAULT_RETRIES):
while retries > 0:
try:
RunCommand(['repo', 'sync'], cwd=buildroot)
+ if rw_checkout:
+ # Always re-run in case of new git repos or repo sync
+ # failed in a previous run because of a forced Stop Build.
+ RunCommand(['repo', 'forall', '-c', 'git', 'config',
+ 'url.ssh://git@gitrw.chromium.org:9222.pushinsteadof',
+ 'http://src.chromium.org/git'], cwd=buildroot)
Mandeep Singh Baines 2010/08/19 22:57:07 What this is doing is telling git to use ssh inste
retries = 0
except:
retries -= 1
@@ -73,19 +79,11 @@ def _FullCheckout(buildroot, rw_checkout=True, retries=_DEFAULT_RETRIES):
MakeDir(buildroot, parents=True)
RunCommand(['repo', 'init', '-u', 'http://src.chromium.org/git/manifest'],
cwd=buildroot, input='\n\ny\n')
- RepoSync(buildroot, retries)
- if rw_checkout:
- RunCommand(['repo', 'forall', '-c', 'git', 'config',
- 'url.ssh://git@gitrw.chromium.org:9222.pushinsteadof',
- 'http://src.chromium.org/git'], cwd=buildroot)
-
-def _IncrementalCheckout(buildroot, retries=_DEFAULT_RETRIES):
- RepoSync(buildroot, retries)
- # Always re-run in case of new git repos or repo sync
- # failed in a previous run because of a forced Stop Build.
- RunCommand(['repo', 'forall', '-c', 'git', 'config',
- 'url.ssh://git@gitrw.chromium.org:9222.pushinsteadof',
- 'http://src.chromium.org/git'], cwd=buildroot)
+ RepoSync(buildroot, rw_checkout, retries)
+
+def _IncrementalCheckout(buildroot, rw_checkout=True,
+ retries=_DEFAULT_RETRIES):
+ RepoSync(buildroot, rw_checkout, retries)
def _MakeChroot(buildroot):
cwd = os.path.join(buildroot, 'src', 'scripts')
« no previous file with comments | « no previous file | bin/cros_repo_sync_all.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698