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

Side by Side 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, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 [
2 {
3 "cmd": [
4 "python",
5 "-u",
6 "\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.RemoveD irectory(sys.argv[1])\n",
7 "[SLAVE_BUILD]/depot_tools"
8 ],
9 "cwd": "[SLAVE_BUILD]",
10 "name": "rmtree rm depot_tools",
11 "~followup_annotations": [
12 "@@@STEP_LOG_LINE@python.inline@@@@",
13 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
14 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error? See https://crbug.com/584783.@@@",
15 "@@@STEP_LOG_LINE@python.inline@@@@",
16 "@@@STEP_LOG_LINE@python.inline@@@@",
17 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
18 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@",
19 "@@@STEP_LOG_END@python.inline@@@"
20 ]
21 },
22 {
23 "cmd": [
24 "python",
25 "-u",
26 "\nimport os\nimport sys\nos.remove(sys.argv[1])\n",
27 "[SLAVE_BUILD]/depot_tools.zip"
28 ],
29 "cwd": "[SLAVE_BUILD]",
30 "name": "rm depot_tools.zip",
31 "~followup_annotations": [
32 "@@@STEP_LOG_LINE@python.inline@@@@",
33 "@@@STEP_LOG_LINE@python.inline@import os@@@",
34 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
35 "@@@STEP_LOG_LINE@python.inline@os.remove(sys.argv[1])@@@",
36 "@@@STEP_LOG_END@python.inline@@@"
37 ]
38 },
39 {
40 "cmd": [
41 "mkdir",
42 "[SLAVE_BUILD]/depot_tools"
43 ],
44 "cwd": "[SLAVE_BUILD]",
45 "name": "mk depot_tools"
46 },
47 {
48 "cmd": [
49 "git",
50 "clone",
51 "--single-branch",
52 "-n",
53 "https://chromium.googlesource.com/chromium/tools/depot_tools.git",
54 "[SLAVE_BUILD]/depot_tools"
55 ],
56 "cwd": "[SLAVE_BUILD]/depot_tools",
57 "name": "git clone"
58 },
59 {
60 "cmd": [
61 "git",
62 "config",
63 "core.autocrlf",
64 "false"
65 ],
66 "cwd": "[SLAVE_BUILD]/depot_tools",
67 "name": "set autocrlf"
68 },
69 {
70 "cmd": [
71 "git",
72 "config",
73 "core.filemode",
74 "false"
75 ],
76 "cwd": "[SLAVE_BUILD]/depot_tools",
77 "name": "set filemode"
78 },
79 {
80 "cmd": [
81 "git",
82 "config",
83 "core.symlinks",
84 "false"
85 ],
86 "cwd": "[SLAVE_BUILD]/depot_tools",
87 "name": "set symlinks"
88 },
89 {
90 "cmd": [
91 "git",
92 "checkout",
93 "origin/master"
94 ],
95 "cwd": "[SLAVE_BUILD]/depot_tools",
96 "name": "git checkout"
97 },
98 {
99 "cmd": [
100 "git",
101 "reset",
102 "--hard",
103 "deadbeef"
104 ],
105 "cwd": "[SLAVE_BUILD]/depot_tools",
106 "name": "git reset"
107 },
108 {
109 "cmd": [
110 "git",
111 "reflog",
112 "expire",
113 "--all"
114 ],
115 "cwd": "[SLAVE_BUILD]/depot_tools",
116 "name": "git reflog"
117 },
118 {
119 "cmd": [
120 "git",
121 "gc",
122 "--aggressive",
123 "--prune=all"
124 ],
125 "cwd": "[SLAVE_BUILD]/depot_tools",
126 "name": "git gc"
127 },
128 {
129 "cmd": [
130 "python",
131 "-u",
132 "RECIPE_MODULE[build::zip]/resources/zip.py"
133 ],
134 "cwd": "[SLAVE_BUILD]",
135 "name": "zip it up",
136 "stdin": "{\"entries\": [{\"path\": \"[SLAVE_BUILD]/depot_tools\", \"type\": \"dir\"}], \"output\": \"[SLAVE_BUILD]/depot_tools.zip\", \"root\": \"[SLAVE_BU ILD]/depot_tools\"}"
137 },
138 {
139 "cmd": [
140 "python",
141 "-u",
142 "RECIPE_MODULE[build::gsutil]/resources/gsutil_wrapper.py",
143 "--",
144 "[DEPOT_TOOLS]/gsutil.py",
145 "----",
146 "cp",
147 "-a",
148 "public-read",
149 "[SLAVE_BUILD]/depot_tools.zip",
150 "gs://chrome-infra/depot_tools.zip"
151 ],
152 "cwd": "[SLAVE_BUILD]",
153 "name": "gsutil upload",
154 "~followup_annotations": [
155 "@@@STEP_LINK@gsutil.upload@https://storage.googleapis.com/chrome-infra/de pot_tools.zip@@@"
156 ]
157 },
158 {
159 "cmd": [
160 "python",
161 "-u",
162 "RECIPE_MODULE[build::gsutil]/resources/gsutil_wrapper.py",
163 "--",
164 "[DEPOT_TOOLS]/gsutil.py",
165 "----",
166 "cp",
167 "-r",
168 "-z",
169 "html",
170 "-a",
171 "public-read",
172 "[SLAVE_BUILD]/depot_tools/man/html",
173 "gs://chrome-infra-docs/flat/depot_tools/docs/"
174 ],
175 "cwd": "[SLAVE_BUILD]",
176 "name": "gsutil upload docs"
177 },
178 {
179 "name": "$result",
180 "recipe_result": null,
181 "status_code": 0
182 }
183 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698