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

Unified Diff: infra/bots/recipes/swarm_trigger.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
Index: infra/bots/recipes/swarm_trigger.py
diff --git a/infra/bots/recipes/swarm_trigger.py b/infra/bots/recipes/swarm_trigger.py
index f46dcd0115030adb9f285cef5114511d49531d00..bbda756218c02c0601df3e86be6bc5429c5264ce 100644
--- a/infra/bots/recipes/swarm_trigger.py
+++ b/infra/bots/recipes/swarm_trigger.py
@@ -212,8 +212,8 @@ def trigger_task(api, task_name, builder, master, slave, buildnumber,
if api.properties.get('patch_storage') == 'gerrit':
properties['patch_storage'] = api.properties['patch_storage']
properties['repository'] = api.properties['repository']
- properties['event.patchSet.ref'] = api.properties['event.patchSet.ref']
- properties['event.change.number'] = api.properties['event.change.number']
+ properties['patch_ref'] = api.properties['patch_ref']
+ properties['patch_issue'] = api.properties['patch_issue']
else:
properties['issue'] = str(api.properties['issue'])
properties['patchset'] = str(api.properties['patchset'])
@@ -747,8 +747,9 @@ def GenTests(api):
gerrit_kwargs = {
'patch_storage': 'gerrit',
'repository': 'skia',
- 'event.patchSet.ref': 'refs/changes/00/2100/2',
- 'event.change.number': '2100',
+ 'patch_ref': 'refs/changes/00/2100/2',
+ 'patch_issue': '2100',
+ 'patch_set': '2',
}
yield (
api.test('recipe_with_gerrit_patch') +

Powered by Google App Engine
This is Rietveld 408576698