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') + |