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

Side by Side Diff: bin/cbuildbot.py

Issue 3135049: cbuildbot: fix to point to new url (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: Created 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 import errno 7 import errno
8 import optparse 8 import optparse
9 import os 9 import os
10 import shutil 10 import shutil
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 def RepoSync(buildroot, rw_checkout, retries=_DEFAULT_RETRIES): 57 def RepoSync(buildroot, rw_checkout, retries=_DEFAULT_RETRIES):
58 while retries > 0: 58 while retries > 0:
59 try: 59 try:
60 RunCommand(['repo', 'sync'], cwd=buildroot) 60 RunCommand(['repo', 'sync'], cwd=buildroot)
61 if rw_checkout: 61 if rw_checkout:
62 # Always re-run in case of new git repos or repo sync 62 # Always re-run in case of new git repos or repo sync
63 # failed in a previous run because of a forced Stop Build. 63 # failed in a previous run because of a forced Stop Build.
64 RunCommand(['repo', 'forall', '-c', 'git', 'config', 64 RunCommand(['repo', 'forall', '-c', 'git', 'config',
65 'url.ssh://git@gitrw.chromium.org:9222.pushinsteadof', 65 'url.ssh://git@gitrw.chromium.org:9222.pushinsteadof',
66 'http://src.chromium.org/git'], cwd=buildroot) 66 'http://git.chromium.org/git'], cwd=buildroot)
67 retries = 0 67 retries = 0
68 except: 68 except:
69 retries -= 1 69 retries -= 1
70 if retries > 0: 70 if retries > 0:
71 print >> sys.stderr, 'CBUILDBOT -- Repo Sync Failed, retrying' 71 print >> sys.stderr, 'CBUILDBOT -- Repo Sync Failed, retrying'
72 else: 72 else:
73 print >> sys.stderr, 'CBUILDBOT -- Retries exhausted' 73 print >> sys.stderr, 'CBUILDBOT -- Retries exhausted'
74 raise 74 raise
75 75
76 # Main functions 76 # Main functions
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 _UprevPush(buildroot) 189 _UprevPush(buildroot)
190 _UprevCleanup(buildroot) 190 _UprevCleanup(buildroot)
191 except: 191 except:
192 # something went wrong, cleanup (being paranoid) for next build 192 # something went wrong, cleanup (being paranoid) for next build
193 if clobber: 193 if clobber:
194 RunCommand(['sudo', 'rm', '-rf', buildroot], print_cmd=False) 194 RunCommand(['sudo', 'rm', '-rf', buildroot], print_cmd=False)
195 raise 195 raise
196 196
197 if __name__ == '__main__': 197 if __name__ == '__main__':
198 main() 198 main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698