hudson-remote-api 0.7.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +20 -0
- data/README.md +11 -9
- data/Rakefile +10 -0
- data/fixtures/vcr_cassettes/TestHudsonBuildQueue_test_list.yml +38 -0
- data/fixtures/vcr_cassettes/TestHudsonBuild_setup.yml +407 -0
- data/fixtures/vcr_cassettes/TestHudsonBuild_test_build_info.yml +222 -0
- data/fixtures/vcr_cassettes/TestHudsonClient_test_build_job_.yml +52 -0
- data/fixtures/vcr_cassettes/TestHudsonClient_test_build_job_with_parameters_.yml +52 -0
- data/fixtures/vcr_cassettes/TestHudsonClient_test_build_queue_info.yml +38 -0
- data/fixtures/vcr_cassettes/TestHudsonClient_test_create_item_.yml +52 -0
- data/fixtures/vcr_cassettes/TestHudsonClient_test_delete_job_.yml +52 -0
- data/fixtures/vcr_cassettes/TestHudsonClient_test_job_build_info.yml +39 -0
- data/fixtures/vcr_cassettes/TestHudsonClient_test_job_config_info.yml +48 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_build.yml +409 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_build_with_params.yml +189 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_builds_list.yml +192 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_copy.yml +410 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_create.yml +257 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_desc_update.yml +281 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_get.yml +191 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_job_with_spaces.yml +260 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_list.yml +39 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_list_active.yml +39 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_new.yml +561 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_scm_url.yml +728 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_triggers_delete.yml +588 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_triggers_set.yml +346 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_triggers_set_using_shortcut.yml +346 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_url.yml +156 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_wipe_out_workspace.yml +685 -0
- data/hudson-remote-api.gemspec +23 -0
- data/lib/hudson-remote-api.rb +3 -128
- data/lib/hudson-remote-api/build.rb +18 -35
- data/lib/hudson-remote-api/build_queue.rb +13 -20
- data/lib/hudson-remote-api/client.rb +179 -0
- data/lib/hudson-remote-api/hudson_xml_api.rb +61 -0
- data/lib/hudson-remote-api/job.rb +207 -345
- data/lib/hudson-remote-api/parser/build_info.rb +37 -0
- data/lib/hudson-remote-api/parser/build_queue_info.rb +19 -0
- data/lib/hudson-remote-api/parser/job_config_info.rb +99 -0
- data/lib/hudson-remote-api/parser/job_info.rb +62 -0
- data/lib/hudson-remote-api/parser/multicast.rb +28 -0
- data/lib/hudson-remote-api/parser/server_info.rb +49 -0
- data/lib/hudson-remote-api/settings.rb +31 -0
- data/lib/hudson-remote-api/version.rb +3 -0
- data/lib/hudson-remote-api/xml_writer/job_config_info.rb +113 -0
- data/test/test_helper.rb +10 -0
- data/test/test_hudson_build.rb +28 -0
- data/test/test_hudson_build_queue.rb +11 -0
- data/test/test_hudson_client.rb +65 -0
- data/test/test_hudson_job.rb +162 -0
- data/test/test_hudson_multicast.rb +9 -0
- data/test/test_hudson_settings.rb +70 -0
- metadata +71 -53
- data/lib/hudson-remote-api/config.rb +0 -46
@@ -0,0 +1,346 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:8080/createItem
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: name=build_triggers&mode=hudson.model.FreeStyleProject&config=%3C%3Fxml+version%3D%271.0%27+encoding%3D%27UTF-8%27%3F%3E%0A%3Cproject%3E%0A++%3Cactions%2F%3E%0A++%3Cdescription%3E%3C%2Fdescription%3E%0A++%3CkeepDependencies%3Efalse%3C%2FkeepDependencies%3E%0A++%3Cproperties%2F%3E%0A++%3Cscm+class%3D%22hudson.scm.NullSCM%22%2F%3E%0A++%3CcanRoam%3Etrue%3C%2FcanRoam%3E%0A++%3Cdisabled%3Efalse%3C%2Fdisabled%3E%0A++%3CblockBuildWhenUpstreamBuilding%3Efalse%3C%2FblockBuildWhenUpstreamBuilding%3E%0A++%3Ctriggers+class%3D%22vector%22%2F%3E%0A++%3CconcurrentBuild%3Efalse%3C%2FconcurrentBuild%3E%0A++%3Cbuilders%2F%3E%0A++%3Cpublishers%2F%3E%0A++%3CbuildWrappers%2F%3E%0A%3C%2Fproject%3E
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
".crumb":
|
19
|
+
- 794e76dae4fb480fa0642bcacda51ace
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 302
|
23
|
+
message: Found
|
24
|
+
headers:
|
25
|
+
Location:
|
26
|
+
- http://localhost:8080/job/build_triggers/configure
|
27
|
+
Content-Length:
|
28
|
+
- '0'
|
29
|
+
Server:
|
30
|
+
- Jetty(8.y.z-SNAPSHOT)
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: ''
|
34
|
+
http_version:
|
35
|
+
recorded_at: Tue, 18 Nov 2014 06:06:57 GMT
|
36
|
+
- request:
|
37
|
+
method: get
|
38
|
+
uri: http://localhost:8080/api/xml
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ''
|
42
|
+
headers:
|
43
|
+
Accept-Encoding:
|
44
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
45
|
+
Accept:
|
46
|
+
- "*/*"
|
47
|
+
User-Agent:
|
48
|
+
- Ruby
|
49
|
+
Content-Type:
|
50
|
+
- text/xml
|
51
|
+
response:
|
52
|
+
status:
|
53
|
+
code: 200
|
54
|
+
message: OK
|
55
|
+
headers:
|
56
|
+
X-Jenkins:
|
57
|
+
- '1.583'
|
58
|
+
X-Jenkins-Session:
|
59
|
+
- cdced1b2
|
60
|
+
Content-Type:
|
61
|
+
- application/xml;charset=UTF-8
|
62
|
+
Content-Length:
|
63
|
+
- '325'
|
64
|
+
Server:
|
65
|
+
- Jetty(8.y.z-SNAPSHOT)
|
66
|
+
body:
|
67
|
+
encoding: UTF-8
|
68
|
+
string: "<hudson><assignedLabel></assignedLabel><mode>NORMAL</mode><nodeDescription>the
|
69
|
+
master Jenkins node</nodeDescription><nodeName></nodeName><numExecutors>2</numExecutors><job><name>build_triggers</name><url>http://localhost:8080/job/build_triggers/</url><color>notbuilt</color></job><job><name>test_job</name><url>http://localhost:8080/job/test_job/</url><color>blue</color></job><job><name>test_svn_job</name><url>http://localhost:8080/job/test_svn_job/</url><color>blue</color></job><overallLoad></overallLoad><primaryView><name>All</name><url>http://localhost:8080/</url></primaryView><quietingDown>false</quietingDown><slaveAgentPort>0</slaveAgentPort><unlabeledLoad></unlabeledLoad><useCrumbs>true</useCrumbs><useSecurity>false</useSecurity><view><name>All</name><url>http://localhost:8080/</url></view></hudson>"
|
70
|
+
http_version:
|
71
|
+
recorded_at: Tue, 18 Nov 2014 06:06:57 GMT
|
72
|
+
- request:
|
73
|
+
method: get
|
74
|
+
uri: http://localhost:8080/api/xml
|
75
|
+
body:
|
76
|
+
encoding: US-ASCII
|
77
|
+
string: ''
|
78
|
+
headers:
|
79
|
+
Accept-Encoding:
|
80
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
81
|
+
Accept:
|
82
|
+
- "*/*"
|
83
|
+
User-Agent:
|
84
|
+
- Ruby
|
85
|
+
Content-Type:
|
86
|
+
- text/xml
|
87
|
+
response:
|
88
|
+
status:
|
89
|
+
code: 200
|
90
|
+
message: OK
|
91
|
+
headers:
|
92
|
+
X-Jenkins:
|
93
|
+
- '1.583'
|
94
|
+
X-Jenkins-Session:
|
95
|
+
- cdced1b2
|
96
|
+
Content-Type:
|
97
|
+
- application/xml;charset=UTF-8
|
98
|
+
Content-Length:
|
99
|
+
- '325'
|
100
|
+
Server:
|
101
|
+
- Jetty(8.y.z-SNAPSHOT)
|
102
|
+
body:
|
103
|
+
encoding: UTF-8
|
104
|
+
string: "<hudson><assignedLabel></assignedLabel><mode>NORMAL</mode><nodeDescription>the
|
105
|
+
master Jenkins node</nodeDescription><nodeName></nodeName><numExecutors>2</numExecutors><job><name>build_triggers</name><url>http://localhost:8080/job/build_triggers/</url><color>notbuilt</color></job><job><name>test_job</name><url>http://localhost:8080/job/test_job/</url><color>blue</color></job><job><name>test_svn_job</name><url>http://localhost:8080/job/test_svn_job/</url><color>blue</color></job><overallLoad></overallLoad><primaryView><name>All</name><url>http://localhost:8080/</url></primaryView><quietingDown>false</quietingDown><slaveAgentPort>0</slaveAgentPort><unlabeledLoad></unlabeledLoad><useCrumbs>true</useCrumbs><useSecurity>false</useSecurity><view><name>All</name><url>http://localhost:8080/</url></view></hudson>"
|
106
|
+
http_version:
|
107
|
+
recorded_at: Tue, 18 Nov 2014 06:06:57 GMT
|
108
|
+
- request:
|
109
|
+
method: get
|
110
|
+
uri: http://localhost:8080/job/build_triggers/config.xml
|
111
|
+
body:
|
112
|
+
encoding: US-ASCII
|
113
|
+
string: ''
|
114
|
+
headers:
|
115
|
+
Accept-Encoding:
|
116
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
117
|
+
Accept:
|
118
|
+
- "*/*"
|
119
|
+
User-Agent:
|
120
|
+
- Ruby
|
121
|
+
Content-Type:
|
122
|
+
- text/xml
|
123
|
+
response:
|
124
|
+
status:
|
125
|
+
code: 200
|
126
|
+
message: OK
|
127
|
+
headers:
|
128
|
+
Content-Type:
|
129
|
+
- application/xml
|
130
|
+
Content-Length:
|
131
|
+
- '468'
|
132
|
+
Server:
|
133
|
+
- Jetty(8.y.z-SNAPSHOT)
|
134
|
+
body:
|
135
|
+
encoding: UTF-8
|
136
|
+
string: |-
|
137
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
138
|
+
<project>
|
139
|
+
<keepDependencies>false</keepDependencies>
|
140
|
+
<properties/>
|
141
|
+
<scm class="hudson.scm.NullSCM"/>
|
142
|
+
<canRoam>false</canRoam>
|
143
|
+
<disabled>false</disabled>
|
144
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
145
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
146
|
+
<triggers/>
|
147
|
+
<concurrentBuild>false</concurrentBuild>
|
148
|
+
<builders/>
|
149
|
+
<publishers/>
|
150
|
+
<buildWrappers/>
|
151
|
+
</project>
|
152
|
+
http_version:
|
153
|
+
recorded_at: Tue, 18 Nov 2014 06:06:57 GMT
|
154
|
+
- request:
|
155
|
+
method: get
|
156
|
+
uri: http://localhost:8080/job/build_triggers/api/xml
|
157
|
+
body:
|
158
|
+
encoding: US-ASCII
|
159
|
+
string: ''
|
160
|
+
headers:
|
161
|
+
Accept-Encoding:
|
162
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
163
|
+
Accept:
|
164
|
+
- "*/*"
|
165
|
+
User-Agent:
|
166
|
+
- Ruby
|
167
|
+
Content-Type:
|
168
|
+
- text/xml
|
169
|
+
response:
|
170
|
+
status:
|
171
|
+
code: 200
|
172
|
+
message: OK
|
173
|
+
headers:
|
174
|
+
X-Jenkins:
|
175
|
+
- '1.583'
|
176
|
+
X-Jenkins-Session:
|
177
|
+
- cdced1b2
|
178
|
+
Content-Type:
|
179
|
+
- application/xml;charset=UTF-8
|
180
|
+
Content-Length:
|
181
|
+
- '201'
|
182
|
+
Server:
|
183
|
+
- Jetty(8.y.z-SNAPSHOT)
|
184
|
+
body:
|
185
|
+
encoding: UTF-8
|
186
|
+
string: "<freeStyleProject><displayName>build_triggers</displayName><name>build_triggers</name><url>http://localhost:8080/job/build_triggers/</url><buildable>true</buildable><color>notbuilt</color><inQueue>false</inQueue><keepDependencies>false</keepDependencies><nextBuildNumber>1</nextBuildNumber><concurrentBuild>false</concurrentBuild><scm></scm></freeStyleProject>"
|
187
|
+
http_version:
|
188
|
+
recorded_at: Tue, 18 Nov 2014 06:06:57 GMT
|
189
|
+
- request:
|
190
|
+
method: post
|
191
|
+
uri: http://localhost:8080/job/build_triggers/config.xml
|
192
|
+
body:
|
193
|
+
encoding: UTF-8
|
194
|
+
string: |-
|
195
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
196
|
+
<project>
|
197
|
+
<keepDependencies>false</keepDependencies>
|
198
|
+
<properties/>
|
199
|
+
<scm class='hudson.scm.NullSCM'/>
|
200
|
+
<canRoam>false</canRoam>
|
201
|
+
<disabled>false</disabled>
|
202
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
203
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
204
|
+
<triggers><hudson.triggers.SCMTrigger><spec>* * * * *</spec></hudson.triggers.SCMTrigger></triggers>
|
205
|
+
<concurrentBuild>false</concurrentBuild>
|
206
|
+
<builders/>
|
207
|
+
<publishers/>
|
208
|
+
<buildWrappers/>
|
209
|
+
</project>
|
210
|
+
headers:
|
211
|
+
Accept-Encoding:
|
212
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
213
|
+
Accept:
|
214
|
+
- "*/*"
|
215
|
+
User-Agent:
|
216
|
+
- Ruby
|
217
|
+
".crumb":
|
218
|
+
- 794e76dae4fb480fa0642bcacda51ace
|
219
|
+
response:
|
220
|
+
status:
|
221
|
+
code: 200
|
222
|
+
message: OK
|
223
|
+
headers:
|
224
|
+
Content-Length:
|
225
|
+
- '0'
|
226
|
+
Server:
|
227
|
+
- Jetty(8.y.z-SNAPSHOT)
|
228
|
+
body:
|
229
|
+
encoding: UTF-8
|
230
|
+
string: ''
|
231
|
+
http_version:
|
232
|
+
recorded_at: Tue, 18 Nov 2014 06:06:57 GMT
|
233
|
+
- request:
|
234
|
+
method: get
|
235
|
+
uri: http://localhost:8080/job/build_triggers/config.xml
|
236
|
+
body:
|
237
|
+
encoding: US-ASCII
|
238
|
+
string: ''
|
239
|
+
headers:
|
240
|
+
Accept-Encoding:
|
241
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
242
|
+
Accept:
|
243
|
+
- "*/*"
|
244
|
+
User-Agent:
|
245
|
+
- Ruby
|
246
|
+
Content-Type:
|
247
|
+
- text/xml
|
248
|
+
response:
|
249
|
+
status:
|
250
|
+
code: 200
|
251
|
+
message: OK
|
252
|
+
headers:
|
253
|
+
Content-Type:
|
254
|
+
- application/xml
|
255
|
+
Content-Length:
|
256
|
+
- '556'
|
257
|
+
Server:
|
258
|
+
- Jetty(8.y.z-SNAPSHOT)
|
259
|
+
body:
|
260
|
+
encoding: UTF-8
|
261
|
+
string: |-
|
262
|
+
<?xml version="1.0" encoding="UTF-8"?><project>
|
263
|
+
<keepDependencies>false</keepDependencies>
|
264
|
+
<properties/>
|
265
|
+
<scm class="hudson.scm.NullSCM"/>
|
266
|
+
<canRoam>false</canRoam>
|
267
|
+
<disabled>false</disabled>
|
268
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
269
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
270
|
+
<triggers><hudson.triggers.SCMTrigger><spec>* * * * *</spec></hudson.triggers.SCMTrigger></triggers>
|
271
|
+
<concurrentBuild>false</concurrentBuild>
|
272
|
+
<builders/>
|
273
|
+
<publishers/>
|
274
|
+
<buildWrappers/>
|
275
|
+
</project>
|
276
|
+
http_version:
|
277
|
+
recorded_at: Tue, 18 Nov 2014 06:06:57 GMT
|
278
|
+
- request:
|
279
|
+
method: get
|
280
|
+
uri: http://localhost:8080/job/build_triggers/api/xml
|
281
|
+
body:
|
282
|
+
encoding: US-ASCII
|
283
|
+
string: ''
|
284
|
+
headers:
|
285
|
+
Accept-Encoding:
|
286
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
287
|
+
Accept:
|
288
|
+
- "*/*"
|
289
|
+
User-Agent:
|
290
|
+
- Ruby
|
291
|
+
Content-Type:
|
292
|
+
- text/xml
|
293
|
+
response:
|
294
|
+
status:
|
295
|
+
code: 200
|
296
|
+
message: OK
|
297
|
+
headers:
|
298
|
+
X-Jenkins:
|
299
|
+
- '1.583'
|
300
|
+
X-Jenkins-Session:
|
301
|
+
- cdced1b2
|
302
|
+
Content-Type:
|
303
|
+
- application/xml;charset=UTF-8
|
304
|
+
Content-Length:
|
305
|
+
- '208'
|
306
|
+
Server:
|
307
|
+
- Jetty(8.y.z-SNAPSHOT)
|
308
|
+
body:
|
309
|
+
encoding: UTF-8
|
310
|
+
string: "<freeStyleProject><action></action><displayName>build_triggers</displayName><name>build_triggers</name><url>http://localhost:8080/job/build_triggers/</url><buildable>true</buildable><color>notbuilt</color><inQueue>false</inQueue><keepDependencies>false</keepDependencies><nextBuildNumber>1</nextBuildNumber><concurrentBuild>false</concurrentBuild><scm></scm></freeStyleProject>"
|
311
|
+
http_version:
|
312
|
+
recorded_at: Tue, 18 Nov 2014 06:06:57 GMT
|
313
|
+
- request:
|
314
|
+
method: post
|
315
|
+
uri: http://localhost:8080/job/build_triggers/doDelete
|
316
|
+
body:
|
317
|
+
encoding: US-ASCII
|
318
|
+
string: ''
|
319
|
+
headers:
|
320
|
+
Accept-Encoding:
|
321
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
322
|
+
Accept:
|
323
|
+
- "*/*"
|
324
|
+
User-Agent:
|
325
|
+
- Ruby
|
326
|
+
Content-Type:
|
327
|
+
- application/x-www-form-urlencoded
|
328
|
+
".crumb":
|
329
|
+
- 794e76dae4fb480fa0642bcacda51ace
|
330
|
+
response:
|
331
|
+
status:
|
332
|
+
code: 302
|
333
|
+
message: Found
|
334
|
+
headers:
|
335
|
+
Location:
|
336
|
+
- http://localhost:8080/
|
337
|
+
Content-Length:
|
338
|
+
- '0'
|
339
|
+
Server:
|
340
|
+
- Jetty(8.y.z-SNAPSHOT)
|
341
|
+
body:
|
342
|
+
encoding: UTF-8
|
343
|
+
string: ''
|
344
|
+
http_version:
|
345
|
+
recorded_at: Tue, 18 Nov 2014 06:15:47 GMT
|
346
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,346 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:8080/createItem
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: name=build_triggers&mode=hudson.model.FreeStyleProject&config=%3C%3Fxml+version%3D%271.0%27+encoding%3D%27UTF-8%27%3F%3E%0A%3Cproject%3E%0A++%3Cactions%2F%3E%0A++%3Cdescription%3E%3C%2Fdescription%3E%0A++%3CkeepDependencies%3Efalse%3C%2FkeepDependencies%3E%0A++%3Cproperties%2F%3E%0A++%3Cscm+class%3D%22hudson.scm.NullSCM%22%2F%3E%0A++%3CcanRoam%3Etrue%3C%2FcanRoam%3E%0A++%3Cdisabled%3Efalse%3C%2Fdisabled%3E%0A++%3CblockBuildWhenUpstreamBuilding%3Efalse%3C%2FblockBuildWhenUpstreamBuilding%3E%0A++%3Ctriggers+class%3D%22vector%22%2F%3E%0A++%3CconcurrentBuild%3Efalse%3C%2FconcurrentBuild%3E%0A++%3Cbuilders%2F%3E%0A++%3Cpublishers%2F%3E%0A++%3CbuildWrappers%2F%3E%0A%3C%2Fproject%3E
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
".crumb":
|
19
|
+
- 794e76dae4fb480fa0642bcacda51ace
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 302
|
23
|
+
message: Found
|
24
|
+
headers:
|
25
|
+
Location:
|
26
|
+
- http://localhost:8080/job/build_triggers/configure
|
27
|
+
Content-Length:
|
28
|
+
- '0'
|
29
|
+
Server:
|
30
|
+
- Jetty(8.y.z-SNAPSHOT)
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: ''
|
34
|
+
http_version:
|
35
|
+
recorded_at: Tue, 18 Nov 2014 06:16:53 GMT
|
36
|
+
- request:
|
37
|
+
method: get
|
38
|
+
uri: http://localhost:8080/api/xml
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ''
|
42
|
+
headers:
|
43
|
+
Accept-Encoding:
|
44
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
45
|
+
Accept:
|
46
|
+
- "*/*"
|
47
|
+
User-Agent:
|
48
|
+
- Ruby
|
49
|
+
Content-Type:
|
50
|
+
- text/xml
|
51
|
+
response:
|
52
|
+
status:
|
53
|
+
code: 200
|
54
|
+
message: OK
|
55
|
+
headers:
|
56
|
+
X-Jenkins:
|
57
|
+
- '1.583'
|
58
|
+
X-Jenkins-Session:
|
59
|
+
- cdced1b2
|
60
|
+
Content-Type:
|
61
|
+
- application/xml;charset=UTF-8
|
62
|
+
Content-Length:
|
63
|
+
- '325'
|
64
|
+
Server:
|
65
|
+
- Jetty(8.y.z-SNAPSHOT)
|
66
|
+
body:
|
67
|
+
encoding: UTF-8
|
68
|
+
string: "<hudson><assignedLabel></assignedLabel><mode>NORMAL</mode><nodeDescription>the
|
69
|
+
master Jenkins node</nodeDescription><nodeName></nodeName><numExecutors>2</numExecutors><job><name>build_triggers</name><url>http://localhost:8080/job/build_triggers/</url><color>notbuilt</color></job><job><name>test_job</name><url>http://localhost:8080/job/test_job/</url><color>blue</color></job><job><name>test_svn_job</name><url>http://localhost:8080/job/test_svn_job/</url><color>blue</color></job><overallLoad></overallLoad><primaryView><name>All</name><url>http://localhost:8080/</url></primaryView><quietingDown>false</quietingDown><slaveAgentPort>0</slaveAgentPort><unlabeledLoad></unlabeledLoad><useCrumbs>true</useCrumbs><useSecurity>false</useSecurity><view><name>All</name><url>http://localhost:8080/</url></view></hudson>"
|
70
|
+
http_version:
|
71
|
+
recorded_at: Tue, 18 Nov 2014 06:16:53 GMT
|
72
|
+
- request:
|
73
|
+
method: get
|
74
|
+
uri: http://localhost:8080/api/xml
|
75
|
+
body:
|
76
|
+
encoding: US-ASCII
|
77
|
+
string: ''
|
78
|
+
headers:
|
79
|
+
Accept-Encoding:
|
80
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
81
|
+
Accept:
|
82
|
+
- "*/*"
|
83
|
+
User-Agent:
|
84
|
+
- Ruby
|
85
|
+
Content-Type:
|
86
|
+
- text/xml
|
87
|
+
response:
|
88
|
+
status:
|
89
|
+
code: 200
|
90
|
+
message: OK
|
91
|
+
headers:
|
92
|
+
X-Jenkins:
|
93
|
+
- '1.583'
|
94
|
+
X-Jenkins-Session:
|
95
|
+
- cdced1b2
|
96
|
+
Content-Type:
|
97
|
+
- application/xml;charset=UTF-8
|
98
|
+
Content-Length:
|
99
|
+
- '325'
|
100
|
+
Server:
|
101
|
+
- Jetty(8.y.z-SNAPSHOT)
|
102
|
+
body:
|
103
|
+
encoding: UTF-8
|
104
|
+
string: "<hudson><assignedLabel></assignedLabel><mode>NORMAL</mode><nodeDescription>the
|
105
|
+
master Jenkins node</nodeDescription><nodeName></nodeName><numExecutors>2</numExecutors><job><name>build_triggers</name><url>http://localhost:8080/job/build_triggers/</url><color>notbuilt</color></job><job><name>test_job</name><url>http://localhost:8080/job/test_job/</url><color>blue</color></job><job><name>test_svn_job</name><url>http://localhost:8080/job/test_svn_job/</url><color>blue</color></job><overallLoad></overallLoad><primaryView><name>All</name><url>http://localhost:8080/</url></primaryView><quietingDown>false</quietingDown><slaveAgentPort>0</slaveAgentPort><unlabeledLoad></unlabeledLoad><useCrumbs>true</useCrumbs><useSecurity>false</useSecurity><view><name>All</name><url>http://localhost:8080/</url></view></hudson>"
|
106
|
+
http_version:
|
107
|
+
recorded_at: Tue, 18 Nov 2014 06:16:53 GMT
|
108
|
+
- request:
|
109
|
+
method: get
|
110
|
+
uri: http://localhost:8080/job/build_triggers/config.xml
|
111
|
+
body:
|
112
|
+
encoding: US-ASCII
|
113
|
+
string: ''
|
114
|
+
headers:
|
115
|
+
Accept-Encoding:
|
116
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
117
|
+
Accept:
|
118
|
+
- "*/*"
|
119
|
+
User-Agent:
|
120
|
+
- Ruby
|
121
|
+
Content-Type:
|
122
|
+
- text/xml
|
123
|
+
response:
|
124
|
+
status:
|
125
|
+
code: 200
|
126
|
+
message: OK
|
127
|
+
headers:
|
128
|
+
Content-Type:
|
129
|
+
- application/xml
|
130
|
+
Content-Length:
|
131
|
+
- '468'
|
132
|
+
Server:
|
133
|
+
- Jetty(8.y.z-SNAPSHOT)
|
134
|
+
body:
|
135
|
+
encoding: UTF-8
|
136
|
+
string: |-
|
137
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
138
|
+
<project>
|
139
|
+
<keepDependencies>false</keepDependencies>
|
140
|
+
<properties/>
|
141
|
+
<scm class="hudson.scm.NullSCM"/>
|
142
|
+
<canRoam>false</canRoam>
|
143
|
+
<disabled>false</disabled>
|
144
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
145
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
146
|
+
<triggers/>
|
147
|
+
<concurrentBuild>false</concurrentBuild>
|
148
|
+
<builders/>
|
149
|
+
<publishers/>
|
150
|
+
<buildWrappers/>
|
151
|
+
</project>
|
152
|
+
http_version:
|
153
|
+
recorded_at: Tue, 18 Nov 2014 06:16:53 GMT
|
154
|
+
- request:
|
155
|
+
method: get
|
156
|
+
uri: http://localhost:8080/job/build_triggers/api/xml
|
157
|
+
body:
|
158
|
+
encoding: US-ASCII
|
159
|
+
string: ''
|
160
|
+
headers:
|
161
|
+
Accept-Encoding:
|
162
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
163
|
+
Accept:
|
164
|
+
- "*/*"
|
165
|
+
User-Agent:
|
166
|
+
- Ruby
|
167
|
+
Content-Type:
|
168
|
+
- text/xml
|
169
|
+
response:
|
170
|
+
status:
|
171
|
+
code: 200
|
172
|
+
message: OK
|
173
|
+
headers:
|
174
|
+
X-Jenkins:
|
175
|
+
- '1.583'
|
176
|
+
X-Jenkins-Session:
|
177
|
+
- cdced1b2
|
178
|
+
Content-Type:
|
179
|
+
- application/xml;charset=UTF-8
|
180
|
+
Content-Length:
|
181
|
+
- '201'
|
182
|
+
Server:
|
183
|
+
- Jetty(8.y.z-SNAPSHOT)
|
184
|
+
body:
|
185
|
+
encoding: UTF-8
|
186
|
+
string: "<freeStyleProject><displayName>build_triggers</displayName><name>build_triggers</name><url>http://localhost:8080/job/build_triggers/</url><buildable>true</buildable><color>notbuilt</color><inQueue>false</inQueue><keepDependencies>false</keepDependencies><nextBuildNumber>1</nextBuildNumber><concurrentBuild>false</concurrentBuild><scm></scm></freeStyleProject>"
|
187
|
+
http_version:
|
188
|
+
recorded_at: Tue, 18 Nov 2014 06:16:53 GMT
|
189
|
+
- request:
|
190
|
+
method: post
|
191
|
+
uri: http://localhost:8080/job/build_triggers/config.xml
|
192
|
+
body:
|
193
|
+
encoding: UTF-8
|
194
|
+
string: |-
|
195
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
196
|
+
<project>
|
197
|
+
<keepDependencies>false</keepDependencies>
|
198
|
+
<properties/>
|
199
|
+
<scm class='hudson.scm.NullSCM'/>
|
200
|
+
<canRoam>false</canRoam>
|
201
|
+
<disabled>false</disabled>
|
202
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
203
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
204
|
+
<triggers><hudson.triggers.SCMTrigger><spec>* * * * *</spec></hudson.triggers.SCMTrigger><hudson.triggers.TimerTrigger><spec>0 22 * * *</spec></hudson.triggers.TimerTrigger></triggers>
|
205
|
+
<concurrentBuild>false</concurrentBuild>
|
206
|
+
<builders/>
|
207
|
+
<publishers/>
|
208
|
+
<buildWrappers/>
|
209
|
+
</project>
|
210
|
+
headers:
|
211
|
+
Accept-Encoding:
|
212
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
213
|
+
Accept:
|
214
|
+
- "*/*"
|
215
|
+
User-Agent:
|
216
|
+
- Ruby
|
217
|
+
".crumb":
|
218
|
+
- 794e76dae4fb480fa0642bcacda51ace
|
219
|
+
response:
|
220
|
+
status:
|
221
|
+
code: 200
|
222
|
+
message: OK
|
223
|
+
headers:
|
224
|
+
Content-Length:
|
225
|
+
- '0'
|
226
|
+
Server:
|
227
|
+
- Jetty(8.y.z-SNAPSHOT)
|
228
|
+
body:
|
229
|
+
encoding: UTF-8
|
230
|
+
string: ''
|
231
|
+
http_version:
|
232
|
+
recorded_at: Tue, 18 Nov 2014 06:16:53 GMT
|
233
|
+
- request:
|
234
|
+
method: get
|
235
|
+
uri: http://localhost:8080/job/build_triggers/config.xml
|
236
|
+
body:
|
237
|
+
encoding: US-ASCII
|
238
|
+
string: ''
|
239
|
+
headers:
|
240
|
+
Accept-Encoding:
|
241
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
242
|
+
Accept:
|
243
|
+
- "*/*"
|
244
|
+
User-Agent:
|
245
|
+
- Ruby
|
246
|
+
Content-Type:
|
247
|
+
- text/xml
|
248
|
+
response:
|
249
|
+
status:
|
250
|
+
code: 200
|
251
|
+
message: OK
|
252
|
+
headers:
|
253
|
+
Content-Type:
|
254
|
+
- application/xml
|
255
|
+
Content-Length:
|
256
|
+
- '640'
|
257
|
+
Server:
|
258
|
+
- Jetty(8.y.z-SNAPSHOT)
|
259
|
+
body:
|
260
|
+
encoding: UTF-8
|
261
|
+
string: |-
|
262
|
+
<?xml version="1.0" encoding="UTF-8"?><project>
|
263
|
+
<keepDependencies>false</keepDependencies>
|
264
|
+
<properties/>
|
265
|
+
<scm class="hudson.scm.NullSCM"/>
|
266
|
+
<canRoam>false</canRoam>
|
267
|
+
<disabled>false</disabled>
|
268
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
269
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
270
|
+
<triggers><hudson.triggers.SCMTrigger><spec>* * * * *</spec></hudson.triggers.SCMTrigger><hudson.triggers.TimerTrigger><spec>0 22 * * *</spec></hudson.triggers.TimerTrigger></triggers>
|
271
|
+
<concurrentBuild>false</concurrentBuild>
|
272
|
+
<builders/>
|
273
|
+
<publishers/>
|
274
|
+
<buildWrappers/>
|
275
|
+
</project>
|
276
|
+
http_version:
|
277
|
+
recorded_at: Tue, 18 Nov 2014 06:16:53 GMT
|
278
|
+
- request:
|
279
|
+
method: get
|
280
|
+
uri: http://localhost:8080/job/build_triggers/api/xml
|
281
|
+
body:
|
282
|
+
encoding: US-ASCII
|
283
|
+
string: ''
|
284
|
+
headers:
|
285
|
+
Accept-Encoding:
|
286
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
287
|
+
Accept:
|
288
|
+
- "*/*"
|
289
|
+
User-Agent:
|
290
|
+
- Ruby
|
291
|
+
Content-Type:
|
292
|
+
- text/xml
|
293
|
+
response:
|
294
|
+
status:
|
295
|
+
code: 200
|
296
|
+
message: OK
|
297
|
+
headers:
|
298
|
+
X-Jenkins:
|
299
|
+
- '1.583'
|
300
|
+
X-Jenkins-Session:
|
301
|
+
- cdced1b2
|
302
|
+
Content-Type:
|
303
|
+
- application/xml;charset=UTF-8
|
304
|
+
Content-Length:
|
305
|
+
- '208'
|
306
|
+
Server:
|
307
|
+
- Jetty(8.y.z-SNAPSHOT)
|
308
|
+
body:
|
309
|
+
encoding: UTF-8
|
310
|
+
string: "<freeStyleProject><action></action><displayName>build_triggers</displayName><name>build_triggers</name><url>http://localhost:8080/job/build_triggers/</url><buildable>true</buildable><color>notbuilt</color><inQueue>false</inQueue><keepDependencies>false</keepDependencies><nextBuildNumber>1</nextBuildNumber><concurrentBuild>false</concurrentBuild><scm></scm></freeStyleProject>"
|
311
|
+
http_version:
|
312
|
+
recorded_at: Tue, 18 Nov 2014 06:16:53 GMT
|
313
|
+
- request:
|
314
|
+
method: post
|
315
|
+
uri: http://localhost:8080/job/build_triggers/doDelete
|
316
|
+
body:
|
317
|
+
encoding: US-ASCII
|
318
|
+
string: ''
|
319
|
+
headers:
|
320
|
+
Accept-Encoding:
|
321
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
322
|
+
Accept:
|
323
|
+
- "*/*"
|
324
|
+
User-Agent:
|
325
|
+
- Ruby
|
326
|
+
Content-Type:
|
327
|
+
- application/x-www-form-urlencoded
|
328
|
+
".crumb":
|
329
|
+
- 794e76dae4fb480fa0642bcacda51ace
|
330
|
+
response:
|
331
|
+
status:
|
332
|
+
code: 302
|
333
|
+
message: Found
|
334
|
+
headers:
|
335
|
+
Location:
|
336
|
+
- http://localhost:8080/
|
337
|
+
Content-Length:
|
338
|
+
- '0'
|
339
|
+
Server:
|
340
|
+
- Jetty(8.y.z-SNAPSHOT)
|
341
|
+
body:
|
342
|
+
encoding: UTF-8
|
343
|
+
string: ''
|
344
|
+
http_version:
|
345
|
+
recorded_at: Tue, 18 Nov 2014 06:16:53 GMT
|
346
|
+
recorded_with: VCR 2.9.3
|