Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Unified Diff: scripts/slave/recipes/infra/depot_tools_builder.expected/basic.json

Issue 1849113003: Add depot_tools builder to infra waterfall. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: add comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipes/infra/depot_tools_builder.expected/basic.json
diff --git a/scripts/slave/recipes/infra/depot_tools_builder.expected/basic.json b/scripts/slave/recipes/infra/depot_tools_builder.expected/basic.json
new file mode 100644
index 0000000000000000000000000000000000000000..abedd793d77231ec54b5d1b7b216759ab86b054d
--- /dev/null
+++ b/scripts/slave/recipes/infra/depot_tools_builder.expected/basic.json
@@ -0,0 +1,183 @@
+[
+ {
+ "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"
+ ],
+ "cwd": "[SLAVE_BUILD]",
+ "name": "rmtree rm depot_tools",
+ "~followup_annotations": [
+ "@@@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"
+ ],
+ "cwd": "[SLAVE_BUILD]",
+ "name": "rm depot_tools.zip",
+ "~followup_annotations": [
+ "@@@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"
+ ],
+ "cwd": "[SLAVE_BUILD]",
+ "name": "mk depot_tools"
+ },
+ {
+ "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": "git clone"
+ },
+ {
+ "cmd": [
+ "git",
+ "config",
+ "core.autocrlf",
+ "false"
+ ],
+ "cwd": "[SLAVE_BUILD]/depot_tools",
+ "name": "set autocrlf"
+ },
+ {
+ "cmd": [
+ "git",
+ "config",
+ "core.filemode",
+ "false"
+ ],
+ "cwd": "[SLAVE_BUILD]/depot_tools",
+ "name": "set filemode"
+ },
+ {
+ "cmd": [
+ "git",
+ "config",
+ "core.symlinks",
+ "false"
+ ],
+ "cwd": "[SLAVE_BUILD]/depot_tools",
+ "name": "set symlinks"
+ },
+ {
+ "cmd": [
+ "git",
+ "checkout",
+ "origin/master"
+ ],
+ "cwd": "[SLAVE_BUILD]/depot_tools",
+ "name": "git checkout"
+ },
+ {
+ "cmd": [
+ "git",
+ "reset",
+ "--hard",
+ "deadbeef"
+ ],
+ "cwd": "[SLAVE_BUILD]/depot_tools",
+ "name": "git reset"
+ },
+ {
+ "cmd": [
+ "git",
+ "reflog",
+ "expire",
+ "--all"
+ ],
+ "cwd": "[SLAVE_BUILD]/depot_tools",
+ "name": "git reflog"
+ },
+ {
+ "cmd": [
+ "git",
+ "gc",
+ "--aggressive",
+ "--prune=all"
+ ],
+ "cwd": "[SLAVE_BUILD]/depot_tools",
+ "name": "git gc"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[build::zip]/resources/zip.py"
+ ],
+ "cwd": "[SLAVE_BUILD]",
+ "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",
+ "--",
+ "[DEPOT_TOOLS]/gsutil.py",
+ "----",
+ "cp",
+ "-a",
+ "public-read",
+ "[SLAVE_BUILD]/depot_tools.zip",
+ "gs://chrome-infra/depot_tools.zip"
+ ],
+ "cwd": "[SLAVE_BUILD]",
+ "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",
+ "--",
+ "[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/"
+ ],
+ "cwd": "[SLAVE_BUILD]",
+ "name": "gsutil upload docs"
+ },
+ {
+ "name": "$result",
+ "recipe_result": null,
+ "status_code": 0
+ }
+]

Powered by Google App Engine
This is Rietveld 408576698