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

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: Implement Debug option for manifest_version 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
Index: buildbot/cbuildbot_commands.py
diff --git a/buildbot/cbuildbot_commands.py b/buildbot/cbuildbot_commands.py
index 3b49f11448052a9934aa503b1a2dd4265283de5c..f79e645f75c5c0b4dd3efdd2e5ec8dc3c4b3f295 100644
--- a/buildbot/cbuildbot_commands.py
+++ b/buildbot/cbuildbot_commands.py
@@ -118,6 +118,34 @@ def PreFlightRinse(buildroot, board, tracking_branch, overlays):
cros_lib.OldRunCommand(['sudo', 'killall', 'kvm'], error_ok=True)
+def ManifestCheckout(buildroot, tracking_branch, nextversion,
+ 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" % nextversion
+ 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('/');
+ nextversion_subdir = nextversion.split('.');
+
+
+ manifest = os.path.join('buildspecs',
+ nextversion_subdir[0] + '.' + nextversion_subdir[1],
+ nextversion + '.xml')
+
+ #print 'MANIFEST:' + manifest;
+
+ 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'):

Powered by Google App Engine
This is Rietveld 408576698