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

Unified Diff: infra/bots/recipe_modules/vars/api.py

Issue 2455523004: Fix recipes for Gerrit property rename (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | infra/bots/recipes/swarm_compile.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/bots/recipe_modules/vars/api.py
diff --git a/infra/bots/recipe_modules/vars/api.py b/infra/bots/recipe_modules/vars/api.py
index 85e592151a4ee58f836d528afcd1a23a857d08aa..eea6e36c9b4543fc4a3a49e4a6977e4a5ceb7868 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']
« no previous file with comments | « no previous file | infra/bots/recipes/swarm_compile.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698