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,588 @@
|
|
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
|
+
- d6162b9f2e248ec452bad69592fb87ea
|
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: Fri, 07 Nov 2014 06:42:54 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
|
+
- 394516d7
|
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: Fri, 07 Nov 2014 06:42:54 GMT
|
72
|
+
- request:
|
73
|
+
method: get
|
74
|
+
uri: http://localhost:8080/crumbIssuer/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
|
+
- 394516d7
|
96
|
+
Content-Type:
|
97
|
+
- application/xml;charset=UTF-8
|
98
|
+
Content-Length:
|
99
|
+
- '107'
|
100
|
+
Server:
|
101
|
+
- Jetty(8.y.z-SNAPSHOT)
|
102
|
+
body:
|
103
|
+
encoding: UTF-8
|
104
|
+
string: "<defaultCrumbIssuer><crumb>d6162b9f2e248ec452bad69592fb87ea</crumb><crumbRequestField>.crumb</crumbRequestField></defaultCrumbIssuer>"
|
105
|
+
http_version:
|
106
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
107
|
+
- request:
|
108
|
+
method: get
|
109
|
+
uri: http://localhost:8080/api/xml
|
110
|
+
body:
|
111
|
+
encoding: US-ASCII
|
112
|
+
string: ''
|
113
|
+
headers:
|
114
|
+
Accept-Encoding:
|
115
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
116
|
+
Accept:
|
117
|
+
- "*/*"
|
118
|
+
User-Agent:
|
119
|
+
- Ruby
|
120
|
+
Content-Type:
|
121
|
+
- text/xml
|
122
|
+
response:
|
123
|
+
status:
|
124
|
+
code: 200
|
125
|
+
message: OK
|
126
|
+
headers:
|
127
|
+
X-Jenkins:
|
128
|
+
- '1.583'
|
129
|
+
X-Jenkins-Session:
|
130
|
+
- 394516d7
|
131
|
+
Content-Type:
|
132
|
+
- application/xml;charset=UTF-8
|
133
|
+
Content-Length:
|
134
|
+
- '325'
|
135
|
+
Server:
|
136
|
+
- Jetty(8.y.z-SNAPSHOT)
|
137
|
+
body:
|
138
|
+
encoding: UTF-8
|
139
|
+
string: "<hudson><assignedLabel></assignedLabel><mode>NORMAL</mode><nodeDescription>the
|
140
|
+
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>"
|
141
|
+
http_version:
|
142
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
143
|
+
- request:
|
144
|
+
method: get
|
145
|
+
uri: http://localhost:8080/job/build_triggers/config.xml
|
146
|
+
body:
|
147
|
+
encoding: US-ASCII
|
148
|
+
string: ''
|
149
|
+
headers:
|
150
|
+
Accept-Encoding:
|
151
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
152
|
+
Accept:
|
153
|
+
- "*/*"
|
154
|
+
User-Agent:
|
155
|
+
- Ruby
|
156
|
+
Content-Type:
|
157
|
+
- text/xml
|
158
|
+
response:
|
159
|
+
status:
|
160
|
+
code: 200
|
161
|
+
message: OK
|
162
|
+
headers:
|
163
|
+
Content-Type:
|
164
|
+
- application/xml
|
165
|
+
Content-Length:
|
166
|
+
- '468'
|
167
|
+
Server:
|
168
|
+
- Jetty(8.y.z-SNAPSHOT)
|
169
|
+
body:
|
170
|
+
encoding: UTF-8
|
171
|
+
string: |-
|
172
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
173
|
+
<project>
|
174
|
+
<keepDependencies>false</keepDependencies>
|
175
|
+
<properties/>
|
176
|
+
<scm class="hudson.scm.NullSCM"/>
|
177
|
+
<canRoam>false</canRoam>
|
178
|
+
<disabled>false</disabled>
|
179
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
180
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
181
|
+
<triggers/>
|
182
|
+
<concurrentBuild>false</concurrentBuild>
|
183
|
+
<builders/>
|
184
|
+
<publishers/>
|
185
|
+
<buildWrappers/>
|
186
|
+
</project>
|
187
|
+
http_version:
|
188
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
189
|
+
- request:
|
190
|
+
method: get
|
191
|
+
uri: http://localhost:8080/job/build_triggers/api/xml
|
192
|
+
body:
|
193
|
+
encoding: US-ASCII
|
194
|
+
string: ''
|
195
|
+
headers:
|
196
|
+
Accept-Encoding:
|
197
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
198
|
+
Accept:
|
199
|
+
- "*/*"
|
200
|
+
User-Agent:
|
201
|
+
- Ruby
|
202
|
+
Content-Type:
|
203
|
+
- text/xml
|
204
|
+
response:
|
205
|
+
status:
|
206
|
+
code: 200
|
207
|
+
message: OK
|
208
|
+
headers:
|
209
|
+
X-Jenkins:
|
210
|
+
- '1.583'
|
211
|
+
X-Jenkins-Session:
|
212
|
+
- 394516d7
|
213
|
+
Content-Type:
|
214
|
+
- application/xml;charset=UTF-8
|
215
|
+
Content-Length:
|
216
|
+
- '201'
|
217
|
+
Server:
|
218
|
+
- Jetty(8.y.z-SNAPSHOT)
|
219
|
+
body:
|
220
|
+
encoding: UTF-8
|
221
|
+
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>"
|
222
|
+
http_version:
|
223
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
224
|
+
- request:
|
225
|
+
method: post
|
226
|
+
uri: http://localhost:8080/job/build_triggers/doDelete
|
227
|
+
body:
|
228
|
+
encoding: US-ASCII
|
229
|
+
string: ''
|
230
|
+
headers:
|
231
|
+
Accept-Encoding:
|
232
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
233
|
+
Accept:
|
234
|
+
- "*/*"
|
235
|
+
User-Agent:
|
236
|
+
- Ruby
|
237
|
+
Content-Type:
|
238
|
+
- application/x-www-form-urlencoded
|
239
|
+
".crumb":
|
240
|
+
- d6162b9f2e248ec452bad69592fb87ea
|
241
|
+
response:
|
242
|
+
status:
|
243
|
+
code: 302
|
244
|
+
message: Found
|
245
|
+
headers:
|
246
|
+
Location:
|
247
|
+
- http://localhost:8080/
|
248
|
+
Content-Length:
|
249
|
+
- '0'
|
250
|
+
Server:
|
251
|
+
- Jetty(8.y.z-SNAPSHOT)
|
252
|
+
body:
|
253
|
+
encoding: UTF-8
|
254
|
+
string: ''
|
255
|
+
http_version:
|
256
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
257
|
+
- request:
|
258
|
+
method: get
|
259
|
+
uri: http://localhost:8080/job/build_triggers/config.xml
|
260
|
+
body:
|
261
|
+
encoding: US-ASCII
|
262
|
+
string: ''
|
263
|
+
headers:
|
264
|
+
Accept-Encoding:
|
265
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
266
|
+
Accept:
|
267
|
+
- "*/*"
|
268
|
+
User-Agent:
|
269
|
+
- Ruby
|
270
|
+
Content-Type:
|
271
|
+
- text/xml
|
272
|
+
response:
|
273
|
+
status:
|
274
|
+
code: 200
|
275
|
+
message: OK
|
276
|
+
headers:
|
277
|
+
Content-Type:
|
278
|
+
- application/xml
|
279
|
+
Content-Length:
|
280
|
+
- '468'
|
281
|
+
Server:
|
282
|
+
- Jetty(8.y.z-SNAPSHOT)
|
283
|
+
body:
|
284
|
+
encoding: UTF-8
|
285
|
+
string: |-
|
286
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
287
|
+
<project>
|
288
|
+
<keepDependencies>false</keepDependencies>
|
289
|
+
<properties/>
|
290
|
+
<scm class="hudson.scm.NullSCM"/>
|
291
|
+
<canRoam>false</canRoam>
|
292
|
+
<disabled>false</disabled>
|
293
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
294
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
295
|
+
<triggers/>
|
296
|
+
<concurrentBuild>false</concurrentBuild>
|
297
|
+
<builders/>
|
298
|
+
<publishers/>
|
299
|
+
<buildWrappers/>
|
300
|
+
</project>
|
301
|
+
http_version:
|
302
|
+
recorded_at: Mon, 17 Nov 2014 17:39:51 GMT
|
303
|
+
- request:
|
304
|
+
method: get
|
305
|
+
uri: http://localhost:8080/job/build_triggers/api/xml
|
306
|
+
body:
|
307
|
+
encoding: US-ASCII
|
308
|
+
string: ''
|
309
|
+
headers:
|
310
|
+
Accept-Encoding:
|
311
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
312
|
+
Accept:
|
313
|
+
- "*/*"
|
314
|
+
User-Agent:
|
315
|
+
- Ruby
|
316
|
+
Content-Type:
|
317
|
+
- text/xml
|
318
|
+
response:
|
319
|
+
status:
|
320
|
+
code: 200
|
321
|
+
message: OK
|
322
|
+
headers:
|
323
|
+
X-Jenkins:
|
324
|
+
- '1.583'
|
325
|
+
X-Jenkins-Session:
|
326
|
+
- cdced1b2
|
327
|
+
Content-Type:
|
328
|
+
- application/xml;charset=UTF-8
|
329
|
+
Content-Length:
|
330
|
+
- '201'
|
331
|
+
Server:
|
332
|
+
- Jetty(8.y.z-SNAPSHOT)
|
333
|
+
body:
|
334
|
+
encoding: UTF-8
|
335
|
+
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>"
|
336
|
+
http_version:
|
337
|
+
recorded_at: Mon, 17 Nov 2014 17:39:51 GMT
|
338
|
+
- request:
|
339
|
+
method: get
|
340
|
+
uri: http://localhost:8080/job/build_triggers/config.xml
|
341
|
+
body:
|
342
|
+
encoding: US-ASCII
|
343
|
+
string: ''
|
344
|
+
headers:
|
345
|
+
Accept-Encoding:
|
346
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
347
|
+
Accept:
|
348
|
+
- "*/*"
|
349
|
+
User-Agent:
|
350
|
+
- Ruby
|
351
|
+
Content-Type:
|
352
|
+
- text/xml
|
353
|
+
response:
|
354
|
+
status:
|
355
|
+
code: 200
|
356
|
+
message: OK
|
357
|
+
headers:
|
358
|
+
Content-Type:
|
359
|
+
- application/xml
|
360
|
+
Content-Length:
|
361
|
+
- '468'
|
362
|
+
Server:
|
363
|
+
- Jetty(8.y.z-SNAPSHOT)
|
364
|
+
body:
|
365
|
+
encoding: UTF-8
|
366
|
+
string: |-
|
367
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
368
|
+
<project>
|
369
|
+
<keepDependencies>false</keepDependencies>
|
370
|
+
<properties/>
|
371
|
+
<scm class="hudson.scm.NullSCM"/>
|
372
|
+
<canRoam>false</canRoam>
|
373
|
+
<disabled>false</disabled>
|
374
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
375
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
376
|
+
<triggers/>
|
377
|
+
<concurrentBuild>false</concurrentBuild>
|
378
|
+
<builders/>
|
379
|
+
<publishers/>
|
380
|
+
<buildWrappers/>
|
381
|
+
</project>
|
382
|
+
http_version:
|
383
|
+
recorded_at: Mon, 17 Nov 2014 17:39:51 GMT
|
384
|
+
- request:
|
385
|
+
method: get
|
386
|
+
uri: http://localhost:8080/job/build_triggers/api/xml
|
387
|
+
body:
|
388
|
+
encoding: US-ASCII
|
389
|
+
string: ''
|
390
|
+
headers:
|
391
|
+
Accept-Encoding:
|
392
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
393
|
+
Accept:
|
394
|
+
- "*/*"
|
395
|
+
User-Agent:
|
396
|
+
- Ruby
|
397
|
+
Content-Type:
|
398
|
+
- text/xml
|
399
|
+
response:
|
400
|
+
status:
|
401
|
+
code: 200
|
402
|
+
message: OK
|
403
|
+
headers:
|
404
|
+
X-Jenkins:
|
405
|
+
- '1.583'
|
406
|
+
X-Jenkins-Session:
|
407
|
+
- cdced1b2
|
408
|
+
Content-Type:
|
409
|
+
- application/xml;charset=UTF-8
|
410
|
+
Content-Length:
|
411
|
+
- '201'
|
412
|
+
Server:
|
413
|
+
- Jetty(8.y.z-SNAPSHOT)
|
414
|
+
body:
|
415
|
+
encoding: UTF-8
|
416
|
+
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>"
|
417
|
+
http_version:
|
418
|
+
recorded_at: Mon, 17 Nov 2014 17:39:51 GMT
|
419
|
+
- request:
|
420
|
+
method: get
|
421
|
+
uri: http://localhost:8080/job/build_triggers/config.xml
|
422
|
+
body:
|
423
|
+
encoding: US-ASCII
|
424
|
+
string: ''
|
425
|
+
headers:
|
426
|
+
Accept-Encoding:
|
427
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
428
|
+
Accept:
|
429
|
+
- "*/*"
|
430
|
+
User-Agent:
|
431
|
+
- Ruby
|
432
|
+
Content-Type:
|
433
|
+
- text/xml
|
434
|
+
response:
|
435
|
+
status:
|
436
|
+
code: 200
|
437
|
+
message: OK
|
438
|
+
headers:
|
439
|
+
Content-Type:
|
440
|
+
- application/xml
|
441
|
+
Content-Length:
|
442
|
+
- '468'
|
443
|
+
Server:
|
444
|
+
- Jetty(8.y.z-SNAPSHOT)
|
445
|
+
body:
|
446
|
+
encoding: UTF-8
|
447
|
+
string: |-
|
448
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
449
|
+
<project>
|
450
|
+
<keepDependencies>false</keepDependencies>
|
451
|
+
<properties/>
|
452
|
+
<scm class="hudson.scm.NullSCM"/>
|
453
|
+
<canRoam>false</canRoam>
|
454
|
+
<disabled>false</disabled>
|
455
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
456
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
457
|
+
<triggers/>
|
458
|
+
<concurrentBuild>false</concurrentBuild>
|
459
|
+
<builders/>
|
460
|
+
<publishers/>
|
461
|
+
<buildWrappers/>
|
462
|
+
</project>
|
463
|
+
http_version:
|
464
|
+
recorded_at: Mon, 17 Nov 2014 17:39:51 GMT
|
465
|
+
- request:
|
466
|
+
method: get
|
467
|
+
uri: http://localhost:8080/job/build_triggers/api/xml
|
468
|
+
body:
|
469
|
+
encoding: US-ASCII
|
470
|
+
string: ''
|
471
|
+
headers:
|
472
|
+
Accept-Encoding:
|
473
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
474
|
+
Accept:
|
475
|
+
- "*/*"
|
476
|
+
User-Agent:
|
477
|
+
- Ruby
|
478
|
+
Content-Type:
|
479
|
+
- text/xml
|
480
|
+
response:
|
481
|
+
status:
|
482
|
+
code: 200
|
483
|
+
message: OK
|
484
|
+
headers:
|
485
|
+
X-Jenkins:
|
486
|
+
- '1.583'
|
487
|
+
X-Jenkins-Session:
|
488
|
+
- cdced1b2
|
489
|
+
Content-Type:
|
490
|
+
- application/xml;charset=UTF-8
|
491
|
+
Content-Length:
|
492
|
+
- '201'
|
493
|
+
Server:
|
494
|
+
- Jetty(8.y.z-SNAPSHOT)
|
495
|
+
body:
|
496
|
+
encoding: UTF-8
|
497
|
+
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>"
|
498
|
+
http_version:
|
499
|
+
recorded_at: Mon, 17 Nov 2014 17:39:51 GMT
|
500
|
+
- request:
|
501
|
+
method: post
|
502
|
+
uri: http://localhost:8080/job/build_triggers/config.xml
|
503
|
+
body:
|
504
|
+
encoding: UTF-8
|
505
|
+
string: |-
|
506
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
507
|
+
<project>
|
508
|
+
<keepDependencies>false</keepDependencies>
|
509
|
+
<properties/>
|
510
|
+
<scm class='hudson.scm.NullSCM'/>
|
511
|
+
<canRoam>false</canRoam>
|
512
|
+
<disabled>false</disabled>
|
513
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
514
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
515
|
+
<triggers><hudson.triggers.SCMTrigger><spec>* * * * *</spec></hudson.triggers.SCMTrigger><hudson.triggers.TimerTrigger><spec>0 22 * * *</spec></hudson.triggers.TimerTrigger></triggers>
|
516
|
+
<concurrentBuild>false</concurrentBuild>
|
517
|
+
<builders/>
|
518
|
+
<publishers/>
|
519
|
+
<buildWrappers/>
|
520
|
+
</project>
|
521
|
+
headers:
|
522
|
+
Accept-Encoding:
|
523
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
524
|
+
Accept:
|
525
|
+
- "*/*"
|
526
|
+
User-Agent:
|
527
|
+
- Ruby
|
528
|
+
".crumb":
|
529
|
+
- 794e76dae4fb480fa0642bcacda51ace
|
530
|
+
response:
|
531
|
+
status:
|
532
|
+
code: 200
|
533
|
+
message: OK
|
534
|
+
headers:
|
535
|
+
Content-Length:
|
536
|
+
- '0'
|
537
|
+
Server:
|
538
|
+
- Jetty(8.y.z-SNAPSHOT)
|
539
|
+
body:
|
540
|
+
encoding: UTF-8
|
541
|
+
string: ''
|
542
|
+
http_version:
|
543
|
+
recorded_at: Mon, 17 Nov 2014 20:50:51 GMT
|
544
|
+
- request:
|
545
|
+
method: post
|
546
|
+
uri: http://localhost:8080/job/build_triggers/config.xml
|
547
|
+
body:
|
548
|
+
encoding: UTF-8
|
549
|
+
string: |-
|
550
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
551
|
+
<project>
|
552
|
+
<keepDependencies>false</keepDependencies>
|
553
|
+
<properties/>
|
554
|
+
<scm class='hudson.scm.NullSCM'/>
|
555
|
+
<canRoam>false</canRoam>
|
556
|
+
<disabled>false</disabled>
|
557
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
558
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
559
|
+
<triggers/>
|
560
|
+
<concurrentBuild>false</concurrentBuild>
|
561
|
+
<builders/>
|
562
|
+
<publishers/>
|
563
|
+
<buildWrappers/>
|
564
|
+
</project>
|
565
|
+
headers:
|
566
|
+
Accept-Encoding:
|
567
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
568
|
+
Accept:
|
569
|
+
- "*/*"
|
570
|
+
User-Agent:
|
571
|
+
- Ruby
|
572
|
+
".crumb":
|
573
|
+
- 794e76dae4fb480fa0642bcacda51ace
|
574
|
+
response:
|
575
|
+
status:
|
576
|
+
code: 200
|
577
|
+
message: OK
|
578
|
+
headers:
|
579
|
+
Content-Length:
|
580
|
+
- '0'
|
581
|
+
Server:
|
582
|
+
- Jetty(8.y.z-SNAPSHOT)
|
583
|
+
body:
|
584
|
+
encoding: UTF-8
|
585
|
+
string: ''
|
586
|
+
http_version:
|
587
|
+
recorded_at: Mon, 17 Nov 2014 20:50:51 GMT
|
588
|
+
recorded_with: VCR 2.9.3
|