bot_update: remove --gerrit_repo and --gerrit_ref.
Bug: 865882 Recipe-Nontrivial-Roll: build Recipe-Nontrivial-Roll: build_limited_scripts_slave Recipe-Nontrivial-Roll: infra Recipe-Nontrivial-Roll: release_scripts Recipe-Nontrivial-Roll: skia Recipe-Nontrivial-Roll: skiabuildbot Change-Id: I4a04c4c28c7dc63ad282f54604c300bbfe654f11 Reviewed-on: https://chromium-review.googlesource.com/1157687 Commit-Queue: John Budorick <jbudorick@chromium.org> Reviewed-by: Robbie Iannucci <iannucci@chromium.org> Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>changes/87/1157687/8
parent
ed0d273bfa
commit
7de5f08c45
@ -1,29 +0,0 @@
|
||||
[
|
||||
{
|
||||
"cmd": [
|
||||
"python",
|
||||
"-u",
|
||||
"RECIPE_MODULE[depot_tools::bot_update]/resources/apply_gerrit.py",
|
||||
"--gerrit_repo",
|
||||
"chromium",
|
||||
"--gerrit_ref",
|
||||
"",
|
||||
"--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
|
||||
}
|
||||
]
|
@ -1,29 +0,0 @@
|
||||
[
|
||||
{
|
||||
"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": "Custom apply gerrit step"
|
||||
},
|
||||
{
|
||||
"name": "$result",
|
||||
"recipe_result": null,
|
||||
"status_code": 0
|
||||
}
|
||||
]
|
@ -1,33 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
# Copyright 2016 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import optparse
|
||||
import sys
|
||||
|
||||
import bot_update # pylint: disable=relative-import
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
parse = optparse.OptionParser()
|
||||
|
||||
parse.add_option('--gerrit_repo',
|
||||
help='Gerrit repository to pull the ref from.')
|
||||
parse.add_option('--gerrit_ref', help='Gerrit ref to apply.')
|
||||
parse.add_option('--root', help='The location of the checkout.')
|
||||
parse.add_option('--gerrit_no_reset', action='store_true',
|
||||
help='Bypass calling reset after applying a gerrit ref.')
|
||||
parse.add_option('--gerrit_no_rebase_patch_ref', action='store_true',
|
||||
help='Bypass rebase of Gerrit patch ref after checkout.')
|
||||
|
||||
options, _ = parse.parse_args()
|
||||
|
||||
sys.exit(
|
||||
bot_update.apply_gerrit_ref(
|
||||
options.gerrit_repo,
|
||||
options.gerrit_ref,
|
||||
options.root,
|
||||
not options.gerrit_no_reset,
|
||||
not options.gerrit_no_rebase_patch_ref)
|
||||
)
|
Loading…
Reference in New Issue