Add --gerrit_no_reset for who need to use FETCH_HEAD revision.
Avoid to call git reset --soft to preserve current revision to FETCH_HEAD. 'got_revision' property would also be that from FETCH_HEAD. BUG=596787 Review URL: https://codereview.chromium.org/1837453002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299721 0039d316-1c4b-4281-b951-d872f2087c98changes/60/343160/1
parent
fdb9ce32d7
commit
a04cae9f58
@ -0,0 +1,45 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"python",
|
||||||
|
"-u",
|
||||||
|
"RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
|
||||||
|
"--master",
|
||||||
|
"experimental",
|
||||||
|
"--builder",
|
||||||
|
"Experimental Builder",
|
||||||
|
"--slave",
|
||||||
|
"somehost",
|
||||||
|
"--spec",
|
||||||
|
"cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
|
||||||
|
"--root",
|
||||||
|
"src",
|
||||||
|
"--revision_mapping_file",
|
||||||
|
"{\"src\": \"got_cr_revision\"}",
|
||||||
|
"--git-cache-dir",
|
||||||
|
"[GIT_CACHE]",
|
||||||
|
"--output_json",
|
||||||
|
"/path/to/tmp/json",
|
||||||
|
"--revision",
|
||||||
|
"src@HEAD",
|
||||||
|
"--gerrit_no_reset"
|
||||||
|
],
|
||||||
|
"cwd": "[SLAVE_BUILD]",
|
||||||
|
"env": {
|
||||||
|
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
|
||||||
|
},
|
||||||
|
"name": "bot_update",
|
||||||
|
"~followup_annotations": [
|
||||||
|
"@@@STEP_LOG_LINE@json.output@{@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"did_run\": false, @@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@}@@@",
|
||||||
|
"@@@STEP_LOG_END@json.output@@@"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "$result",
|
||||||
|
"recipe_result": null,
|
||||||
|
"status_code": 0
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in New Issue