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

Side by Side Diff: scripts/slave/recipe_modules/git_clone_bundler/example.expected/repo.json

Issue 1115453002: Recipes: make cwd default to slave_build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: rebase Created 5 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 | Annotate | Revision Log
OLDNEW
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\n\nif os.path.exists( sys.argv[1]):\n chromium_utils.RemoveDirectory(sys.argv[1])\n", 6 "\nimport os, sys\nfrom common import chromium_utils\n\nif os.path.exists( sys.argv[1]):\n chromium_utils.RemoveDirectory(sys.argv[1])\n",
7 "[SLAVE_BUILD]/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@@@", 14 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils@@@",
14 "@@@STEP_LOG_LINE@python.inline@@@@", 15 "@@@STEP_LOG_LINE@python.inline@@@@",
15 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", 16 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
16 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@", 17 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@",
17 "@@@STEP_LOG_END@python.inline@@@" 18 "@@@STEP_LOG_END@python.inline@@@"
18 ] 19 ]
19 }, 20 },
20 { 21 {
21 "cmd": [ 22 "cmd": [
22 "python", 23 "python",
23 "-u", 24 "-u",
24 "\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", 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",
25 "[SLAVE_BUILD]/git_clone_bundler/bundles", 26 "[SLAVE_BUILD]/git_clone_bundler/bundles",
26 "511" 27 "511"
27 ], 28 ],
29 "cwd": "[SLAVE_BUILD]",
28 "name": "makedirs bundles", 30 "name": "makedirs bundles",
29 "~followup_annotations": [ 31 "~followup_annotations": [
30 "@@@STEP_LOG_LINE@python.inline@@@@", 32 "@@@STEP_LOG_LINE@python.inline@@@@",
31 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", 33 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
32 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", 34 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
33 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", 35 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
34 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", 36 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
35 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", 37 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
36 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@", 38 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
37 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", 39 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
38 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", 40 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
39 "@@@STEP_LOG_END@python.inline@@@" 41 "@@@STEP_LOG_END@python.inline@@@"
40 ] 42 ]
41 }, 43 },
42 { 44 {
43 "cmd": [ 45 "cmd": [
44 "python", 46 "python",
45 "-u", 47 "-u",
46 "\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 "\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",
47 "[SLAVE_BUILD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b484", 49 "[SLAVE_BUILD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b484",
48 "511" 50 "511"
49 ], 51 ],
52 "cwd": "[SLAVE_BUILD]",
50 "name": "makedirs repo", 53 "name": "makedirs repo",
51 "~followup_annotations": [ 54 "~followup_annotations": [
52 "@@@STEP_LOG_LINE@python.inline@@@@", 55 "@@@STEP_LOG_LINE@python.inline@@@@",
53 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", 56 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
54 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", 57 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
55 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", 58 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
56 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", 59 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
57 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", 60 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
58 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@", 61 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
59 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", 62 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 "RECIPE_MODULE[gsutil]/resources/gsutil_wrapper.py", 113 "RECIPE_MODULE[gsutil]/resources/gsutil_wrapper.py",
111 "--", 114 "--",
112 "[DEPOT_TOOLS]/gsutil.py", 115 "[DEPOT_TOOLS]/gsutil.py",
113 "--force-version", 116 "--force-version",
114 "3.25", 117 "3.25",
115 "--", 118 "--",
116 "cp", 119 "cp",
117 "[SLAVE_BUILD]/git_clone_bundler/bundles/b30c7a01edcf711e48356dd038d8c03e. bundle", 120 "[SLAVE_BUILD]/git_clone_bundler/bundles/b30c7a01edcf711e48356dd038d8c03e. bundle",
118 "gs://clone-dot-bundle-bucket/checkout/repository/src/foo/clone.bundle" 121 "gs://clone-dot-bundle-bucket/checkout/repository/src/foo/clone.bundle"
119 ], 122 ],
123 "cwd": "[SLAVE_BUILD]",
120 "name": "gsutil upload bundle (src/foo)", 124 "name": "gsutil upload bundle (src/foo)",
121 "~followup_annotations": [ 125 "~followup_annotations": [
122 "@@@STEP_LINK@gsutil bundle@https://storage.cloud.google.com/clone-dot-bun dle-bucket/checkout/repository/src/foo/clone.bundle@@@" 126 "@@@STEP_LINK@gsutil bundle@https://storage.cloud.google.com/clone-dot-bun dle-bucket/checkout/repository/src/foo/clone.bundle@@@"
123 ] 127 ]
124 }, 128 },
125 { 129 {
126 "cmd": [ 130 "cmd": [
127 "git", 131 "git",
128 "config", 132 "config",
129 "--get", 133 "--get",
(...skipping 24 matching lines...) Expand all
154 "RECIPE_MODULE[gsutil]/resources/gsutil_wrapper.py", 158 "RECIPE_MODULE[gsutil]/resources/gsutil_wrapper.py",
155 "--", 159 "--",
156 "[DEPOT_TOOLS]/gsutil.py", 160 "[DEPOT_TOOLS]/gsutil.py",
157 "--force-version", 161 "--force-version",
158 "3.25", 162 "3.25",
159 "--", 163 "--",
160 "cp", 164 "cp",
161 "[SLAVE_BUILD]/git_clone_bundler/bundles/4e9dd63391c5eb1884b9b449679dfa16. bundle", 165 "[SLAVE_BUILD]/git_clone_bundler/bundles/4e9dd63391c5eb1884b9b449679dfa16. bundle",
162 "gs://clone-dot-bundle-bucket/checkout/repository/src/bar/clone.bundle" 166 "gs://clone-dot-bundle-bucket/checkout/repository/src/bar/clone.bundle"
163 ], 167 ],
168 "cwd": "[SLAVE_BUILD]",
164 "name": "gsutil upload bundle (src/bar)", 169 "name": "gsutil upload bundle (src/bar)",
165 "~followup_annotations": [ 170 "~followup_annotations": [
166 "@@@STEP_LINK@gsutil bundle@https://storage.cloud.google.com/clone-dot-bun dle-bucket/checkout/repository/src/bar/clone.bundle@@@" 171 "@@@STEP_LINK@gsutil bundle@https://storage.cloud.google.com/clone-dot-bun dle-bucket/checkout/repository/src/bar/clone.bundle@@@"
167 ] 172 ]
168 }, 173 },
169 { 174 {
170 "cmd": [ 175 "cmd": [
171 "git", 176 "git",
172 "config", 177 "config",
173 "--get", 178 "--get",
174 "remote.origin.url" 179 "remote.origin.url"
175 ], 180 ],
176 "cwd": "[SLAVE_BUILD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b48 4/path/to/bar", 181 "cwd": "[SLAVE_BUILD]/git_clone_bundler/repo/baa8c54f5ad38fa45e904e6bdfb6b48 4/path/to/bar",
177 "name": "lookup Git remote (src/bar)", 182 "name": "lookup Git remote (src/bar)",
178 "stdout": "/path/to/tmp/", 183 "stdout": "/path/to/tmp/",
179 "~followup_annotations": [ 184 "~followup_annotations": [
180 "@@@STEP_TEXT@https://localhost/bar.git@@@" 185 "@@@STEP_TEXT@https://localhost/bar.git@@@"
181 ] 186 ]
182 } 187 }
183 ] 188 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698