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

Unified Diff: buildbot/cbuildbot_commands.py

Issue 6691047: Merge MVP script into cbuildbot. (Closed) Base URL: http://git.chromium.org/git/chromite.git@master
Patch Set: Fix handling of simple tracking branches. Ooga_booga versus Ooga/Booga Created 9 years, 8 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 | « buildbot/cbuildbot.py ('k') | buildbot/cbuildbot_config.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: buildbot/cbuildbot_commands.py
diff --git a/buildbot/cbuildbot_commands.py b/buildbot/cbuildbot_commands.py
index 3b49f11448052a9934aa503b1a2dd4265283de5c..b11c2b7071096179c5ef000f9c583d5d7758cb29 100644
--- a/buildbot/cbuildbot_commands.py
+++ b/buildbot/cbuildbot_commands.py
@@ -118,6 +118,32 @@ def PreFlightRinse(buildroot, board, tracking_branch, overlays):
cros_lib.OldRunCommand(['sudo', 'killall', 'kvm'], error_ok=True)
+def ManifestCheckout(buildroot, tracking_branch, next_version,
+ retries=_DEFAULT_RETRIES,
+ url='ssh://git.chromium.org:9222/manifest-versions'):
+ """Performs a manifest checkout and clobbers any previous checkouts."""
+
+ print "buildroot %s" % buildroot
+ print "tracking_branch %s" % tracking_branch
+ print "nextversion %s" % next_version
+ print "url %s" % url
+
+ # Assume url is coming in and overriding and set to manifest-versions
+ url = os.path.dirname(url) + '/manifest-versions';
+
+ branch = tracking_branch.split('/');
+ next_version_subdir = next_version.split('.');
+
+ manifest = os.path.join(
+ 'buildspecs',
+ next_version_subdir[0] + '.' + next_version_subdir[1],
+ next_version + '.xml')
+
+ cros_lib.OldRunCommand(['repo', 'init', '-u', url, '-m', manifest ],
+ cwd=buildroot, input='\n\ny\n')
+ _RepoSync(buildroot, retries)
+
+
def FullCheckout(buildroot, tracking_branch,
retries=_DEFAULT_RETRIES,
url='http://git.chromium.org/git/manifest'):
« no previous file with comments | « buildbot/cbuildbot.py ('k') | buildbot/cbuildbot_config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698