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 "python", | 47 "python", |
46 "-u", | 48 "-u", |
47 "\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", | 49 "\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", |
48 "[CWD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b484", | 50 "[SLAVE_BUILD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b484", |
49 "511" | 51 "511" |
50 ], | 52 ], |
| 53 "cwd": "[SLAVE_BUILD]", |
51 "name": "makedirs repo", | 54 "name": "makedirs repo", |
52 "~followup_annotations": [ | 55 "~followup_annotations": [ |
53 "@@@STEP_LOG_LINE@python.inline@@@@", | 56 "@@@STEP_LOG_LINE@python.inline@@@@", |
54 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", | 57 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
55 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", | 58 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
56 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", | 59 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
57 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", | 60 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
58 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", | 61 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
59 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", | 62 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", |
60 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", | 63 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
61 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", | 64 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
62 "@@@STEP_LOG_END@python.inline@@@" | 65 "@@@STEP_LOG_END@python.inline@@@" |
63 ] | 66 ] |
64 }, | 67 }, |
65 { | 68 { |
66 "cmd": [ | 69 "cmd": [ |
67 "[ROOT]/b/depot_tools/repo", | 70 "[DEPOT_TOOLS]/repo", |
68 "init", | 71 "init", |
69 "-u", | 72 "-u", |
70 "https://googlesource.com/manifest.xml" | 73 "https://googlesource.com/manifest.xml" |
71 ], | 74 ], |
72 "cwd": "[CWD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b484", | 75 "cwd": "[SLAVE_BUILD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b48
4", |
73 "name": "repo init" | 76 "name": "repo init" |
74 }, | 77 }, |
75 { | 78 { |
76 "cmd": [ | 79 "cmd": [ |
77 "[ROOT]/b/depot_tools/repo", | 80 "[DEPOT_TOOLS]/repo", |
78 "sync", | 81 "sync", |
79 "--no-clone-bundle" | 82 "--no-clone-bundle" |
80 ], | 83 ], |
81 "cwd": "[CWD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b484", | 84 "cwd": "[SLAVE_BUILD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b48
4", |
82 "name": "repo sync" | 85 "name": "repo sync" |
83 }, | 86 }, |
84 { | 87 { |
85 "cmd": [ | 88 "cmd": [ |
86 "[ROOT]/b/depot_tools/repo", | 89 "[DEPOT_TOOLS]/repo", |
87 "list" | 90 "list" |
88 ], | 91 ], |
89 "cwd": "[CWD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b484", | 92 "cwd": "[SLAVE_BUILD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b48
4", |
90 "name": "repo list", | 93 "name": "repo list", |
91 "stdout": "/path/to/tmp/", | 94 "stdout": "/path/to/tmp/", |
92 "~followup_annotations": [ | 95 "~followup_annotations": [ |
93 "@@@STEP_TEXT@</br></br>path/to/foo : src/foo</br>path/to/bar : src/bar@@@
" | 96 "@@@STEP_TEXT@</br></br>path/to/foo : src/foo</br>path/to/bar : src/bar@@@
" |
94 ] | 97 ] |
95 }, | 98 }, |
96 { | 99 { |
97 "cmd": [ | 100 "cmd": [ |
98 "git", | 101 "git", |
99 "bundle", | 102 "bundle", |
100 "create", | 103 "create", |
101 "[CWD]/git_clone_bundler/bundles/b30c7a01edcf711e48356dd038d8c03e.bundle", | 104 "[SLAVE_BUILD]/git_clone_bundler/bundles/b30c7a01edcf711e48356dd038d8c03e.
bundle", |
102 "--all" | 105 "--all" |
103 ], | 106 ], |
104 "cwd": "[CWD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b484/path/t
o/foo", | 107 "cwd": "[SLAVE_BUILD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b48
4/path/to/foo", |
105 "name": "create bundle (src/foo)" | 108 "name": "create bundle (src/foo)" |
106 }, | 109 }, |
107 { | 110 { |
108 "cmd": [ | 111 "cmd": [ |
109 "python", | 112 "python", |
110 "-u", | 113 "-u", |
111 "RECIPE_MODULE[build::gsutil]/resources/gsutil_wrapper.py", | 114 "RECIPE_MODULE[build::gsutil]/resources/gsutil_wrapper.py", |
112 "--", | 115 "--", |
113 "[ROOT]/b/depot_tools/gsutil.py", | 116 "[DEPOT_TOOLS]/gsutil.py", |
114 "----", | 117 "----", |
115 "cp", | 118 "cp", |
116 "[CWD]/git_clone_bundler/bundles/b30c7a01edcf711e48356dd038d8c03e.bundle", | 119 "[SLAVE_BUILD]/git_clone_bundler/bundles/b30c7a01edcf711e48356dd038d8c03e.
bundle", |
117 "gs://clone-dot-bundle-bucket/checkout/repository/src/foo/clone.bundle" | 120 "gs://clone-dot-bundle-bucket/checkout/repository/src/foo/clone.bundle" |
118 ], | 121 ], |
| 122 "cwd": "[SLAVE_BUILD]", |
119 "name": "gsutil upload bundle (src/foo)", | 123 "name": "gsutil upload bundle (src/foo)", |
120 "~followup_annotations": [ | 124 "~followup_annotations": [ |
121 "@@@STEP_LINK@gsutil bundle@https://storage.cloud.google.com/clone-dot-bun
dle-bucket/checkout/repository/src/foo/clone.bundle@@@" | 125 "@@@STEP_LINK@gsutil bundle@https://storage.cloud.google.com/clone-dot-bun
dle-bucket/checkout/repository/src/foo/clone.bundle@@@" |
122 ] | 126 ] |
123 }, | 127 }, |
124 { | 128 { |
125 "cmd": [ | 129 "cmd": [ |
126 "git", | 130 "git", |
127 "config", | 131 "config", |
128 "--get", | 132 "--get", |
129 "remote.origin.url" | 133 "remote.origin.url" |
130 ], | 134 ], |
131 "cwd": "[CWD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b484/path/t
o/foo", | 135 "cwd": "[SLAVE_BUILD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b48
4/path/to/foo", |
132 "name": "lookup Git remote (src/foo)", | 136 "name": "lookup Git remote (src/foo)", |
133 "stdout": "/path/to/tmp/", | 137 "stdout": "/path/to/tmp/", |
134 "~followup_annotations": [ | 138 "~followup_annotations": [ |
135 "@@@STEP_TEXT@https://localhost/foo.git@@@" | 139 "@@@STEP_TEXT@https://localhost/foo.git@@@" |
136 ] | 140 ] |
137 }, | 141 }, |
138 { | 142 { |
139 "cmd": [ | 143 "cmd": [ |
140 "git", | 144 "git", |
141 "bundle", | 145 "bundle", |
142 "create", | 146 "create", |
143 "[CWD]/git_clone_bundler/bundles/4e9dd63391c5eb1884b9b449679dfa16.bundle", | 147 "[SLAVE_BUILD]/git_clone_bundler/bundles/4e9dd63391c5eb1884b9b449679dfa16.
bundle", |
144 "--all" | 148 "--all" |
145 ], | 149 ], |
146 "cwd": "[CWD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b484/path/t
o/bar", | 150 "cwd": "[SLAVE_BUILD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b48
4/path/to/bar", |
147 "name": "create bundle (src/bar)" | 151 "name": "create bundle (src/bar)" |
148 }, | 152 }, |
149 { | 153 { |
150 "cmd": [ | 154 "cmd": [ |
151 "python", | 155 "python", |
152 "-u", | 156 "-u", |
153 "RECIPE_MODULE[build::gsutil]/resources/gsutil_wrapper.py", | 157 "RECIPE_MODULE[build::gsutil]/resources/gsutil_wrapper.py", |
154 "--", | 158 "--", |
155 "[ROOT]/b/depot_tools/gsutil.py", | 159 "[DEPOT_TOOLS]/gsutil.py", |
156 "----", | 160 "----", |
157 "cp", | 161 "cp", |
158 "[CWD]/git_clone_bundler/bundles/4e9dd63391c5eb1884b9b449679dfa16.bundle", | 162 "[SLAVE_BUILD]/git_clone_bundler/bundles/4e9dd63391c5eb1884b9b449679dfa16.
bundle", |
159 "gs://clone-dot-bundle-bucket/checkout/repository/src/bar/clone.bundle" | 163 "gs://clone-dot-bundle-bucket/checkout/repository/src/bar/clone.bundle" |
160 ], | 164 ], |
| 165 "cwd": "[SLAVE_BUILD]", |
161 "name": "gsutil upload bundle (src/bar)", | 166 "name": "gsutil upload bundle (src/bar)", |
162 "~followup_annotations": [ | 167 "~followup_annotations": [ |
163 "@@@STEP_LINK@gsutil bundle@https://storage.cloud.google.com/clone-dot-bun
dle-bucket/checkout/repository/src/bar/clone.bundle@@@" | 168 "@@@STEP_LINK@gsutil bundle@https://storage.cloud.google.com/clone-dot-bun
dle-bucket/checkout/repository/src/bar/clone.bundle@@@" |
164 ] | 169 ] |
165 }, | 170 }, |
166 { | 171 { |
167 "cmd": [ | 172 "cmd": [ |
168 "git", | 173 "git", |
169 "config", | 174 "config", |
170 "--get", | 175 "--get", |
171 "remote.origin.url" | 176 "remote.origin.url" |
172 ], | 177 ], |
173 "cwd": "[CWD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b484/path/t
o/bar", | 178 "cwd": "[SLAVE_BUILD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b48
4/path/to/bar", |
174 "name": "lookup Git remote (src/bar)", | 179 "name": "lookup Git remote (src/bar)", |
175 "stdout": "/path/to/tmp/", | 180 "stdout": "/path/to/tmp/", |
176 "~followup_annotations": [ | 181 "~followup_annotations": [ |
177 "@@@STEP_TEXT@https://localhost/bar.git@@@" | 182 "@@@STEP_TEXT@https://localhost/bar.git@@@" |
178 ] | 183 ] |
179 }, | 184 }, |
180 { | 185 { |
181 "name": "$result", | 186 "name": "$result", |
182 "recipe_result": null, | 187 "recipe_result": null, |
183 "status_code": 0 | 188 "status_code": 0 |
184 } | 189 } |
185 ] | 190 ] |
OLD | NEW |