OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "cmd": [ | 3 "cmd": [ |
4 "python", | 4 "python", |
5 "-u", | 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", | 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 "[CWD]/git_clone_bundler/bundles" | 7 "[SLAVE_BUILD]/git_clone_bundler/bundles" |
8 ], | 8 ], |
| 9 "cwd": "[SLAVE_BUILD]", |
9 "name": "rmtree old bundles", | 10 "name": "rmtree old bundles", |
10 "~followup_annotations": [ | 11 "~followup_annotations": [ |
11 "@@@STEP_LOG_LINE@python.inline@@@@", | 12 "@@@STEP_LOG_LINE@python.inline@@@@", |
12 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", | 13 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", |
13 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error?
See https://crbug.com/584783.@@@", | 14 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error?
See https://crbug.com/584783.@@@", |
14 "@@@STEP_LOG_LINE@python.inline@@@@", | 15 "@@@STEP_LOG_LINE@python.inline@@@@", |
15 "@@@STEP_LOG_LINE@python.inline@@@@", | 16 "@@@STEP_LOG_LINE@python.inline@@@@", |
16 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", | 17 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", |
17 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[
1])@@@", | 18 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[
1])@@@", |
18 "@@@STEP_LOG_END@python.inline@@@" | 19 "@@@STEP_LOG_END@python.inline@@@" |
19 ] | 20 ] |
20 }, | 21 }, |
21 { | 22 { |
22 "cmd": [ | 23 "cmd": [ |
23 "python", | 24 "python", |
24 "-u", | 25 "-u", |
25 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.
path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not
a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", | 26 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.
path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not
a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", |
26 "[CWD]/git_clone_bundler/bundles", | 27 "[SLAVE_BUILD]/git_clone_bundler/bundles", |
27 "511" | 28 "511" |
28 ], | 29 ], |
| 30 "cwd": "[SLAVE_BUILD]", |
29 "name": "makedirs bundles", | 31 "name": "makedirs bundles", |
30 "~followup_annotations": [ | 32 "~followup_annotations": [ |
31 "@@@STEP_LOG_LINE@python.inline@@@@", | 33 "@@@STEP_LOG_LINE@python.inline@@@@", |
32 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", | 34 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
33 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", | 35 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
34 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", | 36 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
35 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", | 37 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
36 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", | 38 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
37 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", | 39 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", |
38 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", | 40 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
39 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", | 41 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
40 "@@@STEP_LOG_END@python.inline@@@" | 42 "@@@STEP_LOG_END@python.inline@@@" |
41 ] | 43 ] |
42 }, | 44 }, |
43 { | 45 { |
44 "cmd": [ | 46 "cmd": [ |
45 "git", | 47 "git", |
46 "bundle", | 48 "bundle", |
47 "create", | 49 "create", |
48 "[CWD]/git_clone_bundler/bundles/4c11f7d238ab3a5109562560694c3722.bundle", | 50 "[SLAVE_BUILD]/git_clone_bundler/bundles/4c11f7d238ab3a5109562560694c3722.
bundle", |
49 "--all" | 51 "--all" |
50 ], | 52 ], |
51 "cwd": "[CWD]/checkout", | 53 "cwd": "[SLAVE_BUILD]/checkout", |
52 "name": "create bundle" | 54 "name": "create bundle" |
53 }, | 55 }, |
54 { | 56 { |
55 "cmd": [ | 57 "cmd": [ |
56 "python", | 58 "python", |
57 "-u", | 59 "-u", |
58 "RECIPE_MODULE[build::gsutil]/resources/gsutil_wrapper.py", | 60 "RECIPE_MODULE[build::gsutil]/resources/gsutil_wrapper.py", |
59 "--", | 61 "--", |
60 "[ROOT]/b/depot_tools/gsutil.py", | 62 "[DEPOT_TOOLS]/gsutil.py", |
61 "----", | 63 "----", |
62 "cp", | 64 "cp", |
63 "[CWD]/git_clone_bundler/bundles/4c11f7d238ab3a5109562560694c3722.bundle", | 65 "[SLAVE_BUILD]/git_clone_bundler/bundles/4c11f7d238ab3a5109562560694c3722.
bundle", |
64 "gs://clone-dot-bundle-bucket/checkout/repository/clone.bundle" | 66 "gs://clone-dot-bundle-bucket/checkout/repository/clone.bundle" |
65 ], | 67 ], |
| 68 "cwd": "[SLAVE_BUILD]", |
66 "name": "gsutil upload bundle", | 69 "name": "gsutil upload bundle", |
67 "~followup_annotations": [ | 70 "~followup_annotations": [ |
68 "@@@STEP_LINK@gsutil bundle@https://storage.cloud.google.com/clone-dot-bun
dle-bucket/checkout/repository/clone.bundle@@@" | 71 "@@@STEP_LINK@gsutil bundle@https://storage.cloud.google.com/clone-dot-bun
dle-bucket/checkout/repository/clone.bundle@@@" |
69 ] | 72 ] |
70 }, | 73 }, |
71 { | 74 { |
72 "name": "$result", | 75 "name": "$result", |
73 "recipe_result": null, | 76 "recipe_result": null, |
74 "status_code": 0 | 77 "status_code": 0 |
75 } | 78 } |
76 ] | 79 ] |
OLD | NEW |