OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "cmd": [ | 3 "cmd": [ |
4 "python", | 4 "python", |
5 "-u", | 5 "-u", |
6 "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", | 6 "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", |
7 "--path", | 7 "--path", |
8 "[CWD]/src", | 8 "[SLAVE_BUILD]/src", |
9 "--url", | 9 "--url", |
10 "https://chromium.googlesource.com/chromium/src.git" | 10 "https://chromium.googlesource.com/chromium/src.git" |
11 ], | 11 ], |
| 12 "cwd": "[SLAVE_BUILD]", |
12 "name": "git setup" | 13 "name": "git setup" |
13 }, | 14 }, |
14 { | 15 { |
15 "cmd": [ | 16 "cmd": [ |
16 "git", | 17 "git", |
17 "retry", | 18 "retry", |
18 "fetch", | 19 "fetch", |
19 "origin", | 20 "origin", |
20 "master", | 21 "master", |
21 "--recurse-submodules" | 22 "--recurse-submodules" |
22 ], | 23 ], |
23 "cwd": "[CWD]/src", | 24 "cwd": "[SLAVE_BUILD]/src", |
24 "name": "git fetch" | 25 "name": "git fetch" |
25 }, | 26 }, |
26 { | 27 { |
27 "cmd": [ | 28 "cmd": [ |
28 "git", | 29 "git", |
29 "checkout", | 30 "checkout", |
30 "-f", | 31 "-f", |
31 "FETCH_HEAD" | 32 "FETCH_HEAD" |
32 ], | 33 ], |
33 "cwd": "[CWD]/src", | 34 "cwd": "[SLAVE_BUILD]/src", |
34 "name": "git checkout" | 35 "name": "git checkout" |
35 }, | 36 }, |
36 { | 37 { |
37 "cmd": [ | 38 "cmd": [ |
38 "git", | 39 "git", |
39 "rev-parse", | 40 "rev-parse", |
40 "HEAD" | 41 "HEAD" |
41 ], | 42 ], |
42 "cwd": "[CWD]/src", | 43 "cwd": "[SLAVE_BUILD]/src", |
43 "name": "read revision", | 44 "name": "read revision", |
44 "stdout": "/path/to/tmp/", | 45 "stdout": "/path/to/tmp/", |
45 "~followup_annotations": [ | 46 "~followup_annotations": [ |
46 "@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@", | 47 "@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@", |
47 "@@@SET_BUILD_PROPERTY@got_revision@\"deadbeef\"@@@" | 48 "@@@SET_BUILD_PROPERTY@got_revision@\"deadbeef\"@@@" |
48 ] | 49 ] |
49 }, | 50 }, |
50 { | 51 { |
51 "cmd": [ | 52 "cmd": [ |
52 "git", | 53 "git", |
53 "clean", | 54 "clean", |
54 "-f", | 55 "-f", |
55 "-d", | 56 "-d", |
56 "-x" | 57 "-x" |
57 ], | 58 ], |
58 "cwd": "[CWD]/src", | 59 "cwd": "[SLAVE_BUILD]/src", |
59 "name": "git clean" | 60 "name": "git clean" |
60 }, | 61 }, |
61 { | 62 { |
62 "cmd": [ | 63 "cmd": [ |
63 "git", | 64 "git", |
64 "submodule", | 65 "submodule", |
65 "sync" | 66 "sync" |
66 ], | 67 ], |
67 "cwd": "[CWD]/src", | 68 "cwd": "[SLAVE_BUILD]/src", |
68 "name": "submodule sync" | 69 "name": "submodule sync" |
69 }, | 70 }, |
70 { | 71 { |
71 "cmd": [ | 72 "cmd": [ |
72 "git", | 73 "git", |
73 "submodule", | 74 "submodule", |
74 "update", | 75 "update", |
75 "--init", | 76 "--init", |
76 "--recursive" | 77 "--recursive" |
77 ], | 78 ], |
78 "cwd": "[CWD]/src", | 79 "cwd": "[SLAVE_BUILD]/src", |
79 "name": "submodule update" | 80 "name": "submodule update" |
80 }, | 81 }, |
81 { | 82 { |
82 "cmd": [ | 83 "cmd": [ |
83 "git", | 84 "git", |
84 "-c", | 85 "-c", |
85 "foo=bar", | 86 "foo=bar", |
86 "count-objects", | 87 "count-objects", |
87 "-v" | 88 "-v" |
88 ], | 89 ], |
89 "cwd": "[CWD]/src", | 90 "cwd": "[SLAVE_BUILD]/src", |
90 "name": "count-objects", | 91 "name": "count-objects", |
91 "stdout": "/path/to/tmp/" | 92 "stdout": "/path/to/tmp/" |
92 }, | 93 }, |
93 { | 94 { |
94 "cmd": [ | 95 "cmd": [ |
95 "git", | 96 "git", |
96 "config", | 97 "config", |
97 "--get", | 98 "--get", |
98 "remote.origin.url" | 99 "remote.origin.url" |
99 ], | 100 ], |
100 "cwd": "[CWD]/src", | 101 "cwd": "[SLAVE_BUILD]/src", |
101 "name": "git config remote.origin.url", | 102 "name": "git config remote.origin.url", |
102 "stdout": "/path/to/tmp/", | 103 "stdout": "/path/to/tmp/", |
103 "~followup_annotations": [ | 104 "~followup_annotations": [ |
104 "@@@STEP_TEXT@foo@@@" | 105 "@@@STEP_TEXT@foo@@@" |
105 ] | 106 ] |
106 }, | 107 }, |
107 { | 108 { |
108 "cmd": [ | 109 "cmd": [ |
109 "git", | 110 "git", |
110 "show", | 111 "show", |
111 "HEAD", | 112 "HEAD", |
112 "--format=%at", | 113 "--format=%at", |
113 "-s" | 114 "-s" |
114 ], | 115 ], |
115 "cwd": "[CWD]/src", | 116 "cwd": "[SLAVE_BUILD]/src", |
116 "name": "git show", | 117 "name": "git show", |
117 "stdout": "/path/to/tmp/" | 118 "stdout": "/path/to/tmp/" |
118 }, | 119 }, |
119 { | 120 { |
120 "cmd": [ | 121 "cmd": [ |
121 "git", | 122 "git", |
122 "fetch", | 123 "fetch", |
123 "origin", | 124 "origin", |
124 "--tags" | 125 "--tags" |
125 ], | 126 ], |
126 "cwd": "[CWD]/src", | 127 "cwd": "[SLAVE_BUILD]/src", |
127 "name": "git fetch tags" | 128 "name": "git fetch tags" |
128 }, | 129 }, |
129 { | 130 { |
130 "cmd": [ | 131 "cmd": [ |
131 "git", | 132 "git", |
132 "status" | 133 "status" |
133 ], | 134 ], |
134 "cwd": "[CWD]/src", | 135 "cwd": "[SLAVE_BUILD]/src", |
135 "name": "git status" | 136 "name": "git status" |
136 }, | 137 }, |
137 { | 138 { |
138 "cmd": [ | 139 "cmd": [ |
139 "git", | 140 "git", |
140 "status" | 141 "status" |
141 ], | 142 ], |
142 "cwd": "[CWD]/src", | 143 "cwd": "[SLAVE_BUILD]/src", |
143 "name": "git status can_fail_build" | 144 "name": "git status can_fail_build" |
144 }, | 145 }, |
145 { | 146 { |
146 "cmd": [ | 147 "cmd": [ |
147 "git", | 148 "git", |
148 "status" | 149 "status" |
149 ], | 150 ], |
150 "cwd": "[CWD]/src", | 151 "cwd": "[SLAVE_BUILD]/src", |
151 "name": "git status cannot_fail_build" | 152 "name": "git status cannot_fail_build" |
152 }, | 153 }, |
153 { | 154 { |
154 "cmd": [ | 155 "cmd": [ |
155 "git", | 156 "git", |
156 "rebase", | 157 "rebase", |
157 "origin/master" | 158 "origin/master" |
158 ], | 159 ], |
159 "cwd": "[CWD]/src", | 160 "cwd": "[SLAVE_BUILD]/src", |
160 "name": "my repo rebase" | 161 "name": "my repo rebase" |
161 }, | 162 }, |
162 { | 163 { |
163 "cmd": [ | 164 "cmd": [ |
164 "git", | 165 "git", |
165 "bundle", | 166 "bundle", |
166 "create", | 167 "create", |
167 "[CWD]/all.bundle", | 168 "[SLAVE_BUILD]/all.bundle", |
168 "--all" | 169 "--all" |
169 ], | 170 ], |
170 "cwd": "[CWD]/src", | 171 "cwd": "[SLAVE_BUILD]/src", |
171 "name": "git bundle" | 172 "name": "git bundle" |
172 }, | 173 }, |
173 { | 174 { |
174 "name": "$result", | 175 "name": "$result", |
175 "recipe_result": null, | 176 "recipe_result": null, |
176 "status_code": 0 | 177 "status_code": 0 |
177 } | 178 } |
178 ] | 179 ] |
OLD | NEW |