aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipe_modules/core/api.py
diff options
context:
space:
mode:
authorGravatar Eric Boren <borenet@google.com>2017-04-10 09:56:10 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-10 14:27:58 +0000
commitf9aa9e51691d83970039f42c623c1fd354552378 (patch)
treebcba2c64667ba4889939e5f6fefe53e231b82763 /infra/bots/recipe_modules/core/api.py
parent31abf1fc945c27755173b78037e62576cf2dd62e (diff)
Clean up no-longer-used recipes stuff
- Remove buildbot logic - Remove non-Gerrit logic - Remove master, slave, and build number properties Bug: skia:6473 Change-Id: I203d523f3a0e03f933c0c48d29c7aabac503b2b9 Reviewed-on: https://skia-review.googlesource.com/12625 Reviewed-by: Ravi Mistry <rmistry@google.com> Commit-Queue: Eric Boren <borenet@google.com>
Diffstat (limited to 'infra/bots/recipe_modules/core/api.py')
-rw-r--r--infra/bots/recipe_modules/core/api.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/infra/bots/recipe_modules/core/api.py b/infra/bots/recipe_modules/core/api.py
index 623189183c..005ee27733 100644
--- a/infra/bots/recipe_modules/core/api.py
+++ b/infra/bots/recipe_modules/core/api.py
@@ -144,13 +144,12 @@ class SkiaApi(recipe_api.RecipeApi):
# Run bot_update.
# Hack the patch ref if necessary.
- if self.m.properties.get('patch_storage', '') == 'gerrit':
- if self.m.bot_update._issue and self.m.bot_update._patchset:
- self.m.bot_update._gerrit_ref = 'refs/changes/%s/%d/%d' % (
- str(self.m.bot_update._issue)[-2:],
- self.m.bot_update._issue,
- self.m.bot_update._patchset,
- )
+ if self.m.bot_update._issue and self.m.bot_update._patchset:
+ self.m.bot_update._gerrit_ref = 'refs/changes/%s/%d/%d' % (
+ str(self.m.bot_update._issue)[-2:],
+ self.m.bot_update._issue,
+ self.m.bot_update._patchset,
+ )
self.m.gclient.c = gclient_cfg
with self.m.step.context({'cwd': self.m.vars.checkout_root}):