depot_tools: add gerrit repo and ref to apply_gerrit_ref()
The only user of this method needs to apply two patches from two different repos in a try job. Extending the method to handle this. BUG=628259 R=agable@chromium.org Change-Id: Ia119780d1323add0094631e5c291b0e7a573e6e5 Reviewed-on: https://chromium-review.googlesource.com/588008 Commit-Queue: Sergey Berezin <sergeyberezin@chromium.org> Reviewed-by: Aaron Gable <agable@chromium.org>changes/08/588008/3
parent
56766f1d62
commit
5aa5cd76f0
@ -0,0 +1,29 @@
|
||||
[
|
||||
{
|
||||
"cmd": [
|
||||
"python",
|
||||
"-u",
|
||||
"RECIPE_MODULE[depot_tools::bot_update]/resources/apply_gerrit.py",
|
||||
"--gerrit_repo",
|
||||
"https://custom/repo",
|
||||
"--gerrit_ref",
|
||||
"refs/changes/custom/1234567/1",
|
||||
"--root",
|
||||
"/tmp/test/root",
|
||||
"--gerrit_no_reset",
|
||||
"--gerrit_no_rebase_patch_ref"
|
||||
],
|
||||
"env_prefixes": {
|
||||
"PATH": [
|
||||
"RECIPE_PACKAGE_REPO[depot_tools]"
|
||||
]
|
||||
},
|
||||
"infra_step": true,
|
||||
"name": "apply_gerrit"
|
||||
},
|
||||
{
|
||||
"name": "$result",
|
||||
"recipe_result": null,
|
||||
"status_code": 0
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue