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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/example.expected/restart_usb_builder_basic.json

Issue 296723004: Simplified android_builder and moved internal-only methods to internal module (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Rebase Created 6 years, 7 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
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "python", 4 "python",
5 "-u", 5 "-u",
6 "\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_pat h):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files :\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.joi n(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove (path_to_file)\n", 6 "\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_pat h):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files :\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.joi n(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove (path_to_file)\n",
7 "[SLAVE_BUILD]" 7 "[SLAVE_BUILD]"
8 ], 8 ],
9 "name": "cleanup index.lock", 9 "name": "cleanup index.lock",
10 "~followup_annotations": [ 10 "~followup_annotations": [
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 "name": "Version: some_builder_1234" 163 "name": "Version: some_builder_1234"
164 }, 164 },
165 { 165 {
166 "cmd": [ 166 "cmd": [
167 "python", 167 "python",
168 "-u", 168 "-u",
169 "[DEPOT_TOOLS]/gclient.py", 169 "[DEPOT_TOOLS]/gclient.py",
170 "runhooks" 170 "runhooks"
171 ], 171 ],
172 "env": { 172 "env": {
173 "EXTRA_LANDMINES_SCRIPT": "[SLAVE_BUILD]/src/clank/build/get_internal_land mines.py",
174 "GYP_DEFINES": "OS=android app_manifest_version_code=10 app_manifest_versi on_name=some_builder_1234 chrome_build_id=3333 component=static_library fastbuil d=1 target_arch=arm", 173 "GYP_DEFINES": "OS=android app_manifest_version_code=10 app_manifest_versi on_name=some_builder_1234 chrome_build_id=3333 component=static_library fastbuil d=1 target_arch=arm",
175 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 174 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
176 }, 175 },
177 "name": "gclient runhooks" 176 "name": "gclient runhooks"
178 }, 177 },
179 { 178 {
180 "abort_on_failure": true, 179 "abort_on_failure": true,
181 "cmd": [ 180 "cmd": [
182 "python", 181 "python",
183 "-u", 182 "-u",
184 "[BUILD]/scripts/slave/compile.py", 183 "[BUILD]/scripts/slave/compile.py",
185 "--target", 184 "--target",
186 "Release", 185 "Release",
187 "--src-dir", 186 "--src-dir",
188 "[SLAVE_BUILD]/src", 187 "[SLAVE_BUILD]/src",
189 "--build-tool", 188 "--build-tool",
190 "ninja", 189 "ninja",
191 "--" 190 "--"
192 ], 191 ],
193 "env": { 192 "env": {
194 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 193 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
195 }, 194 },
196 "name": "compile" 195 "name": "compile"
197 }, 196 },
198 { 197 {
199 "cmd": [ 198 "cmd": [
199 "[DEPOT_TOOLS]/git_number.py"
200 ],
201 "cwd": "[SLAVE_BUILD]/src",
202 "name": "git_number",
203 "stdout": "/path/to/tmp/"
204 },
205 {
206 "always_run": true,
207 "cmd": [
208 "python",
209 "-u",
210 "[BUILD]/scripts/slave/android/archive_build.py",
211 "--target",
212 "Release",
213 "--name",
214 "build_product.zip"
215 ],
216 "cwd": "[SLAVE_BUILD]/src",
217 "name": "zip_build_product"
218 },
219 {
220 "cmd": [
221 "python",
222 "-u",
223 "[BUILD]/scripts/slave/recipe_modules/gsutil/resources/gsutil_wrapper.py",
224 "--",
225 "[DEPOT_TOOLS]/third_party/gsutil/gsutil",
226 "cp",
227 "[SLAVE_BUILD]/src/out/build_product.zip",
228 "gs://build-bucket/restart_usb_builder/build_product_4f4b02f6b7fa20a3a2568 2c457bbc8ad589c8a00.zip"
229 ],
230 "name": "gsutil upload_build_product",
231 "~followup_annotations": [
232 "@@@STEP_LINK@gsutil.upload@https://storage.cloud.google.com/build-bucket/ restart_usb_builder/build_product_4f4b02f6b7fa20a3a25682c457bbc8ad589c8a00.zip@@ @"
233 ]
234 },
235 {
236 "cmd": [
200 "python", 237 "python",
201 "-u", 238 "-u",
202 "[BUILD]/scripts/slave/recipe_modules/adb/resources/list_devices.py", 239 "[BUILD]/scripts/slave/recipe_modules/adb/resources/list_devices.py",
203 "['[BUILD_INTERNAL]/scripts/slave/android/adb', 'devices']", 240 "['[BUILD_INTERNAL]/scripts/slave/android/adb', 'devices']",
204 "/path/to/tmp/json" 241 "/path/to/tmp/json"
205 ], 242 ],
206 "name": "List adb devices", 243 "name": "List adb devices",
207 "~followup_annotations": [ 244 "~followup_annotations": [
208 "@@@STEP_LOG_LINE@json.output@[@@@", 245 "@@@STEP_LOG_LINE@json.output@[@@@",
209 "@@@STEP_LOG_LINE@json.output@ \"014E1F310401C009\"@@@", 246 "@@@STEP_LOG_LINE@json.output@ \"014E1F310401C009\"@@@",
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 ], 499 ],
463 "env": { 500 "env": {
464 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 501 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
465 }, 502 },
466 "name": "stack_tool_for_tombstones" 503 "name": "stack_tool_for_tombstones"
467 }, 504 },
468 { 505 {
469 "always_run": true, 506 "always_run": true,
470 "cmd": [ 507 "cmd": [
471 "rm", 508 "rm",
472 "-rf" 509 "-rf",
510 "[SLAVE_BUILD]/src/out/build_product.zip"
473 ], 511 ],
474 "name": "cleanup_build" 512 "name": "cleanup_build"
475 } 513 }
476 ] 514 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698