| Index: recipes/recipes/depot_tools_builder.expected/basic.json
|
| diff --git a/recipes/recipes/depot_tools_builder.expected/basic.json b/recipes/recipes/depot_tools_builder.expected/basic.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cb1be2025ec1b387282907c7f83b6df579a208cb
|
| --- /dev/null
|
| +++ b/recipes/recipes/depot_tools_builder.expected/basic.json
|
| @@ -0,0 +1,214 @@
|
| +[
|
| + {
|
| + "cmd": [],
|
| + "name": "clean workspace"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "python",
|
| + "-u",
|
| + "\nimport os, sys\nfrom common import chromium_utils # Error? See https://crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveDirectory(sys.argv[1])\n",
|
| + "[SLAVE_BUILD]/depot_tools"
|
| + ],
|
| + "name": "clean workspace.rmtree rm depot_tools",
|
| + "~followup_annotations": [
|
| + "@@@STEP_NEST_LEVEL@1@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error? See https://crbug.com/584783.@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[1])@@@",
|
| + "@@@STEP_LOG_END@python.inline@@@"
|
| + ]
|
| + },
|
| + {
|
| + "cmd": [
|
| + "python",
|
| + "-u",
|
| + "\nimport os\nimport sys\nos.remove(sys.argv[1])\n",
|
| + "[SLAVE_BUILD]/depot_tools.zip"
|
| + ],
|
| + "name": "clean workspace.rm depot_tools.zip",
|
| + "~followup_annotations": [
|
| + "@@@STEP_NEST_LEVEL@1@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@import os@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@import sys@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@os.remove(sys.argv[1])@@@",
|
| + "@@@STEP_LOG_END@python.inline@@@"
|
| + ]
|
| + },
|
| + {
|
| + "cmd": [
|
| + "mkdir",
|
| + "[SLAVE_BUILD]/depot_tools"
|
| + ],
|
| + "name": "clean workspace.mk depot_tools",
|
| + "~followup_annotations": [
|
| + "@@@STEP_NEST_LEVEL@1@@@"
|
| + ]
|
| + },
|
| + {
|
| + "cmd": [],
|
| + "name": "clone + checkout"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "clone",
|
| + "--single-branch",
|
| + "-n",
|
| + "https://chromium.googlesource.com/chromium/tools/depot_tools.git",
|
| + "[SLAVE_BUILD]/depot_tools"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/depot_tools",
|
| + "name": "clone + checkout.git clone",
|
| + "~followup_annotations": [
|
| + "@@@STEP_NEST_LEVEL@1@@@"
|
| + ]
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "config",
|
| + "core.autocrlf",
|
| + "false"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/depot_tools",
|
| + "name": "clone + checkout.set autocrlf",
|
| + "~followup_annotations": [
|
| + "@@@STEP_NEST_LEVEL@1@@@"
|
| + ]
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "config",
|
| + "core.filemode",
|
| + "false"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/depot_tools",
|
| + "name": "clone + checkout.set filemode",
|
| + "~followup_annotations": [
|
| + "@@@STEP_NEST_LEVEL@1@@@"
|
| + ]
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "config",
|
| + "core.symlinks",
|
| + "false"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/depot_tools",
|
| + "name": "clone + checkout.set symlinks",
|
| + "~followup_annotations": [
|
| + "@@@STEP_NEST_LEVEL@1@@@"
|
| + ]
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "checkout",
|
| + "origin/master"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/depot_tools",
|
| + "name": "clone + checkout.git checkout",
|
| + "~followup_annotations": [
|
| + "@@@STEP_NEST_LEVEL@1@@@"
|
| + ]
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "reset",
|
| + "--hard",
|
| + "deadbeef"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/depot_tools",
|
| + "name": "clone + checkout.git reset",
|
| + "~followup_annotations": [
|
| + "@@@STEP_NEST_LEVEL@1@@@"
|
| + ]
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "reflog",
|
| + "expire",
|
| + "--all"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/depot_tools",
|
| + "name": "clone + checkout.git reflog",
|
| + "~followup_annotations": [
|
| + "@@@STEP_NEST_LEVEL@1@@@"
|
| + ]
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "gc",
|
| + "--aggressive",
|
| + "--prune=all"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/depot_tools",
|
| + "name": "clone + checkout.git gc",
|
| + "~followup_annotations": [
|
| + "@@@STEP_NEST_LEVEL@1@@@"
|
| + ]
|
| + },
|
| + {
|
| + "cmd": [
|
| + "python",
|
| + "-u",
|
| + "RECIPE_MODULE[build::zip]/resources/zip.py"
|
| + ],
|
| + "name": "zip it up",
|
| + "stdin": "{\"entries\": [{\"path\": \"[SLAVE_BUILD]/depot_tools\", \"type\": \"dir\"}], \"output\": \"[SLAVE_BUILD]/depot_tools.zip\", \"root\": \"[SLAVE_BUILD]/depot_tools\"}"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "python",
|
| + "-u",
|
| + "RECIPE_MODULE[build::gsutil]/resources/gsutil_wrapper.py",
|
| + "--",
|
| + "RECIPE_PACKAGE_REPO[depot_tools]/gsutil.py",
|
| + "----",
|
| + "cp",
|
| + "-a",
|
| + "public-read",
|
| + "[SLAVE_BUILD]/depot_tools.zip",
|
| + "gs://chrome-infra/depot_tools.zip"
|
| + ],
|
| + "name": "gsutil upload",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LINK@gsutil.upload@https://storage.googleapis.com/chrome-infra/depot_tools.zip@@@"
|
| + ]
|
| + },
|
| + {
|
| + "cmd": [
|
| + "python",
|
| + "-u",
|
| + "RECIPE_MODULE[build::gsutil]/resources/gsutil_wrapper.py",
|
| + "--",
|
| + "RECIPE_PACKAGE_REPO[depot_tools]/gsutil.py",
|
| + "----",
|
| + "cp",
|
| + "-r",
|
| + "-z",
|
| + "html",
|
| + "-a",
|
| + "public-read",
|
| + "[SLAVE_BUILD]/depot_tools/man/html",
|
| + "gs://chrome-infra-docs/flat/depot_tools/docs/"
|
| + ],
|
| + "name": "gsutil upload docs"
|
| + },
|
| + {
|
| + "name": "$result",
|
| + "recipe_result": null,
|
| + "status_code": 0
|
| + }
|
| +]
|
|
|