diff options
author | borenet <borenet@chromium.org> | 2016-10-27 06:35:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-27 06:35:52 -0700 |
commit | 96b38426b625b94489fe7ea237d79f9f9a5b406d (patch) | |
tree | 57ded30aa85abdd1117e390bd1f412110f42b642 /infra/bots/recipe_modules | |
parent | eb94e568826b76429b999572fda58c6c5365121b (diff) |
Fix recipes for Gerrit property rename
NOTREECHECKS=true
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2455523004
Review-Url: https://codereview.chromium.org/2455523004
Diffstat (limited to 'infra/bots/recipe_modules')
-rw-r--r-- | infra/bots/recipe_modules/vars/api.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/infra/bots/recipe_modules/vars/api.py b/infra/bots/recipe_modules/vars/api.py index 85e592151a..eea6e36c9b 100644 --- a/infra/bots/recipe_modules/vars/api.py +++ b/infra/bots/recipe_modules/vars/api.py @@ -120,17 +120,17 @@ class SkiaVarsApi(recipe_api.RecipeApi): self.is_trybot = True self.issue = self.m.properties['issue'] self.patchset = self.m.properties['patchset'] - elif (self.m.properties.get('event.change.number', '') and - self.m.properties.get('event.patchSet.ref', '')): + elif (self.m.properties.get('patch_issue', '') and + self.m.properties.get('patch_ref', '')): self.is_trybot = True - self.issue = self.m.properties['event.change.number'] - self.patchset = self.m.properties['event.patchSet.ref'].split('/')[-1] + self.issue = self.m.properties['patch_issue'] + self.patchset = self.m.properties['patch_ref'].split('/')[-1] else: self.is_trybot = self.builder_cfg['is_trybot'] if self.is_trybot: if self.patch_storage == 'gerrit': - self.issue = self.m.properties['event.change.number'] - self.patchset = self.m.properties['event.patchSet.ref'].split('/')[-1] + self.issue = self.m.properties['patch_issue'] + self.patchset = self.m.properties['patch_ref'].split('/')[-1] else: self.issue = self.m.properties['issue'] self.patchset = self.m.properties['patchset'] |