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

Side by Side Diff: scripts/slave/recipe_modules/git_clone_bundler/example.expected/basic.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)@@@",
(...skipping 19 matching lines...) Expand all
57 "RECIPE_MODULE[gsutil]/resources/gsutil_wrapper.py", 59 "RECIPE_MODULE[gsutil]/resources/gsutil_wrapper.py",
58 "--", 60 "--",
59 "[DEPOT_TOOLS]/gsutil.py", 61 "[DEPOT_TOOLS]/gsutil.py",
60 "--force-version", 62 "--force-version",
61 "3.25", 63 "3.25",
62 "--", 64 "--",
63 "cp", 65 "cp",
64 "[SLAVE_BUILD]/git_clone_bundler/bundles/4c11f7d238ab3a5109562560694c3722. bundle", 66 "[SLAVE_BUILD]/git_clone_bundler/bundles/4c11f7d238ab3a5109562560694c3722. bundle",
65 "gs://clone-dot-bundle-bucket/checkout/repository/clone.bundle" 67 "gs://clone-dot-bundle-bucket/checkout/repository/clone.bundle"
66 ], 68 ],
69 "cwd": "[SLAVE_BUILD]",
67 "name": "gsutil upload bundle", 70 "name": "gsutil upload bundle",
68 "~followup_annotations": [ 71 "~followup_annotations": [
69 "@@@STEP_LINK@gsutil bundle@https://storage.cloud.google.com/clone-dot-bun dle-bucket/checkout/repository/clone.bundle@@@" 72 "@@@STEP_LINK@gsutil bundle@https://storage.cloud.google.com/clone-dot-bun dle-bucket/checkout/repository/clone.bundle@@@"
70 ] 73 ]
71 } 74 }
72 ] 75 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698