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

Side by Side Diff: scripts/slave/recipe_modules/goma/api.py

Issue 1575393002: Enhance chromium_tests.configure_build for generalized trybot mirroring (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 11 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
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from recipe_engine import recipe_api 5 from recipe_engine import recipe_api
6 6
7 class GomaApi(recipe_api.RecipeApi): 7 class GomaApi(recipe_api.RecipeApi):
8 """GomaApi contains helper functions for using goma.""" 8 """GomaApi contains helper functions for using goma."""
9 9
10 def update_goma_canary(self, buildername): 10 def update_goma_canary(self):
11 """Returns a step for updating goma canary.""" 11 """Returns a step for updating goma canary."""
12 # for git checkout, should use @refs/heads/master to use head. 12 # for git checkout, should use @refs/heads/master to use head.
13 head = 'refs/heads/master' 13 head = 'refs/heads/master'
14 self.m.gclient('update goma canary', 14 self.m.gclient('update goma canary',
15 ['sync', '--verbose', '--force', 15 ['sync', '--verbose', '--force',
16 '--revision', 'build/goma@%s' % head], 16 '--revision', 'build/goma@%s' % head],
17 cwd=self.m.path['build']) 17 cwd=self.m.path['build'])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698