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 "abcdef12345", | 21 "abcdef12345", |
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 ] | 48 ] |
48 }, | 49 }, |
49 { | 50 { |
50 "cmd": [ | 51 "cmd": [ |
51 "git", | 52 "git", |
52 "clean", | 53 "clean", |
53 "-f", | 54 "-f", |
54 "-d", | 55 "-d", |
55 "-x" | 56 "-x" |
56 ], | 57 ], |
57 "cwd": "[CWD]/src", | 58 "cwd": "[SLAVE_BUILD]/src", |
58 "name": "git clean" | 59 "name": "git clean" |
59 }, | 60 }, |
60 { | 61 { |
61 "cmd": [ | 62 "cmd": [ |
62 "git", | 63 "git", |
63 "submodule", | 64 "submodule", |
64 "sync" | 65 "sync" |
65 ], | 66 ], |
66 "cwd": "[CWD]/src", | 67 "cwd": "[SLAVE_BUILD]/src", |
67 "name": "submodule sync" | 68 "name": "submodule sync" |
68 }, | 69 }, |
69 { | 70 { |
70 "cmd": [ | 71 "cmd": [ |
71 "git", | 72 "git", |
72 "submodule", | 73 "submodule", |
73 "update", | 74 "update", |
74 "--init", | 75 "--init", |
75 "--recursive" | 76 "--recursive" |
76 ], | 77 ], |
77 "cwd": "[CWD]/src", | 78 "cwd": "[SLAVE_BUILD]/src", |
78 "name": "submodule update" | 79 "name": "submodule update" |
79 }, | 80 }, |
80 { | 81 { |
81 "cmd": [ | 82 "cmd": [ |
82 "git", | 83 "git", |
83 "-c", | 84 "-c", |
84 "foo=bar", | 85 "foo=bar", |
85 "count-objects", | 86 "count-objects", |
86 "-v" | 87 "-v" |
87 ], | 88 ], |
88 "cwd": "[CWD]/src", | 89 "cwd": "[SLAVE_BUILD]/src", |
89 "name": "count-objects", | 90 "name": "count-objects", |
90 "stdout": "/path/to/tmp/" | 91 "stdout": "/path/to/tmp/" |
91 }, | 92 }, |
92 { | 93 { |
93 "cmd": [ | 94 "cmd": [ |
94 "git", | 95 "git", |
95 "config", | 96 "config", |
96 "--get", | 97 "--get", |
97 "remote.origin.url" | 98 "remote.origin.url" |
98 ], | 99 ], |
99 "cwd": "[CWD]/src", | 100 "cwd": "[SLAVE_BUILD]/src", |
100 "name": "git config remote.origin.url", | 101 "name": "git config remote.origin.url", |
101 "stdout": "/path/to/tmp/", | 102 "stdout": "/path/to/tmp/", |
102 "~followup_annotations": [ | 103 "~followup_annotations": [ |
103 "@@@STEP_TEXT@foo@@@" | 104 "@@@STEP_TEXT@foo@@@" |
104 ] | 105 ] |
105 }, | 106 }, |
106 { | 107 { |
107 "cmd": [ | 108 "cmd": [ |
108 "git", | 109 "git", |
109 "show", | 110 "show", |
110 "HEAD", | 111 "HEAD", |
111 "--format=%at", | 112 "--format=%at", |
112 "-s" | 113 "-s" |
113 ], | 114 ], |
114 "cwd": "[CWD]/src", | 115 "cwd": "[SLAVE_BUILD]/src", |
115 "name": "git show", | 116 "name": "git show", |
116 "stdout": "/path/to/tmp/" | 117 "stdout": "/path/to/tmp/" |
117 }, | 118 }, |
118 { | 119 { |
119 "cmd": [ | 120 "cmd": [ |
120 "git", | 121 "git", |
121 "fetch", | 122 "fetch", |
122 "origin", | 123 "origin", |
123 "--tags" | 124 "--tags" |
124 ], | 125 ], |
125 "cwd": "[CWD]/src", | 126 "cwd": "[SLAVE_BUILD]/src", |
126 "name": "git fetch tags" | 127 "name": "git fetch tags" |
127 }, | 128 }, |
128 { | 129 { |
129 "cmd": [ | 130 "cmd": [ |
130 "git", | 131 "git", |
131 "status" | 132 "status" |
132 ], | 133 ], |
133 "cwd": "[CWD]/src", | 134 "cwd": "[SLAVE_BUILD]/src", |
134 "name": "git status" | 135 "name": "git status" |
135 }, | 136 }, |
136 { | 137 { |
137 "cmd": [ | 138 "cmd": [ |
138 "git", | 139 "git", |
139 "status" | 140 "status" |
140 ], | 141 ], |
141 "cwd": "[CWD]/src", | 142 "cwd": "[SLAVE_BUILD]/src", |
142 "name": "git status can_fail_build" | 143 "name": "git status can_fail_build" |
143 }, | 144 }, |
144 { | 145 { |
145 "cmd": [ | 146 "cmd": [ |
146 "git", | 147 "git", |
147 "status" | 148 "status" |
148 ], | 149 ], |
149 "cwd": "[CWD]/src", | 150 "cwd": "[SLAVE_BUILD]/src", |
150 "name": "git status cannot_fail_build" | 151 "name": "git status cannot_fail_build" |
151 }, | 152 }, |
152 { | 153 { |
153 "cmd": [ | 154 "cmd": [ |
154 "git", | 155 "git", |
155 "rebase", | 156 "rebase", |
156 "origin/master" | 157 "origin/master" |
157 ], | 158 ], |
158 "cwd": "[CWD]/src", | 159 "cwd": "[SLAVE_BUILD]/src", |
159 "name": "my repo rebase" | 160 "name": "my repo rebase" |
160 }, | 161 }, |
161 { | 162 { |
162 "cmd": [ | 163 "cmd": [ |
163 "git", | 164 "git", |
164 "fetch", | 165 "fetch", |
165 "origin", | 166 "origin", |
166 "--tags" | 167 "--tags" |
167 ], | 168 ], |
168 "cwd": "[CWD]/src", | 169 "cwd": "[SLAVE_BUILD]/src", |
169 "name": "git fetch tags (2)", | 170 "name": "git fetch tags (2)", |
170 "stdout": "/path/to/tmp/" | 171 "stdout": "/path/to/tmp/" |
171 }, | 172 }, |
172 { | 173 { |
173 "cmd": [ | 174 "cmd": [ |
174 "git", | 175 "git", |
175 "cat-file", | 176 "cat-file", |
176 "blob", | 177 "blob", |
177 "abcdef12345:TestFile" | 178 "abcdef12345:TestFile" |
178 ], | 179 ], |
179 "cwd": "[CWD]/src", | 180 "cwd": "[SLAVE_BUILD]/src", |
180 "name": "git cat-file abcdef12345:TestFile", | 181 "name": "git cat-file abcdef12345:TestFile", |
181 "stdout": "/path/to/tmp/" | 182 "stdout": "/path/to/tmp/" |
182 }, | 183 }, |
183 { | 184 { |
184 "cmd": [ | 185 "cmd": [ |
185 "git", | 186 "git", |
186 "bundle", | 187 "bundle", |
187 "create", | 188 "create", |
188 "[CWD]/all.bundle", | 189 "[SLAVE_BUILD]/all.bundle", |
189 "--all" | 190 "--all" |
190 ], | 191 ], |
191 "cwd": "[CWD]/src", | 192 "cwd": "[SLAVE_BUILD]/src", |
192 "name": "git bundle" | 193 "name": "git bundle" |
193 }, | 194 }, |
194 { | 195 { |
195 "name": "$result", | 196 "name": "$result", |
196 "recipe_result": null, | 197 "recipe_result": null, |
197 "status_code": 0 | 198 "status_code": 0 |
198 } | 199 } |
199 ] | 200 ] |
OLD | NEW |