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,257 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:8080/createItem
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: name=new_test_job&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/new_test_job/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
|
+
- '308'
|
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>new_test_job</name><url>http://localhost:8080/job/new_test_job/</url><color>notbuilt</color></job><job><name>test_job</name><url>http://localhost:8080/job/test_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
|
+
- '308'
|
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>new_test_job</name><url>http://localhost:8080/job/new_test_job/</url><color>notbuilt</color></job><job><name>test_job</name><url>http://localhost:8080/job/test_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/new_test_job/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/new_test_job/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
|
+
- '197'
|
217
|
+
Server:
|
218
|
+
- Jetty(8.y.z-SNAPSHOT)
|
219
|
+
body:
|
220
|
+
encoding: UTF-8
|
221
|
+
string: "<freeStyleProject><displayName>new_test_job</displayName><name>new_test_job</name><url>http://localhost:8080/job/new_test_job/</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/new_test_job/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
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,281 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8080/crumbIssuer/api/xml
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
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
|
+
- text/xml
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
X-Jenkins:
|
24
|
+
- '1.583'
|
25
|
+
X-Jenkins-Session:
|
26
|
+
- 394516d7
|
27
|
+
Content-Type:
|
28
|
+
- application/xml;charset=UTF-8
|
29
|
+
Content-Length:
|
30
|
+
- '107'
|
31
|
+
Server:
|
32
|
+
- Jetty(8.y.z-SNAPSHOT)
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: "<defaultCrumbIssuer><crumb>d6162b9f2e248ec452bad69592fb87ea</crumb><crumbRequestField>.crumb</crumbRequestField></defaultCrumbIssuer>"
|
36
|
+
http_version:
|
37
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
38
|
+
- request:
|
39
|
+
method: get
|
40
|
+
uri: http://localhost:8080/api/xml
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ''
|
44
|
+
headers:
|
45
|
+
Accept-Encoding:
|
46
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
47
|
+
Accept:
|
48
|
+
- "*/*"
|
49
|
+
User-Agent:
|
50
|
+
- Ruby
|
51
|
+
Content-Type:
|
52
|
+
- text/xml
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
X-Jenkins:
|
59
|
+
- '1.583'
|
60
|
+
X-Jenkins-Session:
|
61
|
+
- 394516d7
|
62
|
+
Content-Type:
|
63
|
+
- application/xml;charset=UTF-8
|
64
|
+
Content-Length:
|
65
|
+
- '292'
|
66
|
+
Server:
|
67
|
+
- Jetty(8.y.z-SNAPSHOT)
|
68
|
+
body:
|
69
|
+
encoding: UTF-8
|
70
|
+
string: "<hudson><assignedLabel></assignedLabel><mode>NORMAL</mode><nodeDescription>the
|
71
|
+
master Jenkins node</nodeDescription><nodeName></nodeName><numExecutors>2</numExecutors><job><name>test_job</name><url>http://localhost:8080/job/test_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>"
|
72
|
+
http_version:
|
73
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
74
|
+
- request:
|
75
|
+
method: get
|
76
|
+
uri: http://localhost:8080/job/test_job/config.xml
|
77
|
+
body:
|
78
|
+
encoding: US-ASCII
|
79
|
+
string: ''
|
80
|
+
headers:
|
81
|
+
Accept-Encoding:
|
82
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
+
Accept:
|
84
|
+
- "*/*"
|
85
|
+
User-Agent:
|
86
|
+
- Ruby
|
87
|
+
Content-Type:
|
88
|
+
- text/xml
|
89
|
+
response:
|
90
|
+
status:
|
91
|
+
code: 200
|
92
|
+
message: OK
|
93
|
+
headers:
|
94
|
+
Content-Type:
|
95
|
+
- application/xml
|
96
|
+
Content-Length:
|
97
|
+
- '468'
|
98
|
+
Server:
|
99
|
+
- Jetty(8.y.z-SNAPSHOT)
|
100
|
+
body:
|
101
|
+
encoding: UTF-8
|
102
|
+
string: |-
|
103
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
104
|
+
<project>
|
105
|
+
<keepDependencies>false</keepDependencies>
|
106
|
+
<properties/>
|
107
|
+
<scm class="hudson.scm.NullSCM"/>
|
108
|
+
<canRoam>false</canRoam>
|
109
|
+
<disabled>false</disabled>
|
110
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
111
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
112
|
+
<triggers/>
|
113
|
+
<concurrentBuild>false</concurrentBuild>
|
114
|
+
<builders/>
|
115
|
+
<publishers/>
|
116
|
+
<buildWrappers/>
|
117
|
+
</project>
|
118
|
+
http_version:
|
119
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
120
|
+
- request:
|
121
|
+
method: get
|
122
|
+
uri: http://localhost:8080/job/test_job/api/xml
|
123
|
+
body:
|
124
|
+
encoding: US-ASCII
|
125
|
+
string: ''
|
126
|
+
headers:
|
127
|
+
Accept-Encoding:
|
128
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
129
|
+
Accept:
|
130
|
+
- "*/*"
|
131
|
+
User-Agent:
|
132
|
+
- Ruby
|
133
|
+
Content-Type:
|
134
|
+
- text/xml
|
135
|
+
response:
|
136
|
+
status:
|
137
|
+
code: 200
|
138
|
+
message: OK
|
139
|
+
headers:
|
140
|
+
X-Jenkins:
|
141
|
+
- '1.583'
|
142
|
+
X-Jenkins-Session:
|
143
|
+
- 394516d7
|
144
|
+
Content-Type:
|
145
|
+
- application/xml;charset=UTF-8
|
146
|
+
Content-Length:
|
147
|
+
- '372'
|
148
|
+
Server:
|
149
|
+
- Jetty(8.y.z-SNAPSHOT)
|
150
|
+
body:
|
151
|
+
encoding: UTF-8
|
152
|
+
string: "<freeStyleProject><displayName>test_job</displayName><name>test_job</name><url>http://localhost:8080/job/test_job/</url><buildable>true</buildable><build><number>2</number><url>http://localhost:8080/job/test_job/2/</url></build><build><number>1</number><url>http://localhost:8080/job/test_job/1/</url></build><color>blue</color><firstBuild><number>1</number><url>http://localhost:8080/job/test_job/1/</url></firstBuild><healthReport><description>Build
|
153
|
+
stability: No recent builds failed.</description><iconClassName>icon-health-80plus</iconClassName><iconUrl>health-80plus.png</iconUrl><score>100</score></healthReport><inQueue>false</inQueue><keepDependencies>false</keepDependencies><lastBuild><number>2</number><url>http://localhost:8080/job/test_job/2/</url></lastBuild><lastCompletedBuild><number>2</number><url>http://localhost:8080/job/test_job/2/</url></lastCompletedBuild><lastStableBuild><number>2</number><url>http://localhost:8080/job/test_job/2/</url></lastStableBuild><lastSuccessfulBuild><number>2</number><url>http://localhost:8080/job/test_job/2/</url></lastSuccessfulBuild><nextBuildNumber>3</nextBuildNumber><concurrentBuild>false</concurrentBuild><scm></scm></freeStyleProject>"
|
154
|
+
http_version:
|
155
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
156
|
+
- request:
|
157
|
+
method: post
|
158
|
+
uri: http://localhost:8080/job/test_job/config.xml
|
159
|
+
body:
|
160
|
+
encoding: UTF-8
|
161
|
+
string: |-
|
162
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
163
|
+
<project>
|
164
|
+
<keepDependencies>false</keepDependencies>
|
165
|
+
<properties/>
|
166
|
+
<scm class='hudson.scm.NullSCM'/>
|
167
|
+
<canRoam>false</canRoam>
|
168
|
+
<disabled>false</disabled>
|
169
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
170
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
171
|
+
<triggers/>
|
172
|
+
<concurrentBuild>false</concurrentBuild>
|
173
|
+
<builders/>
|
174
|
+
<publishers/>
|
175
|
+
<buildWrappers/>
|
176
|
+
<description>test</description></project>
|
177
|
+
headers:
|
178
|
+
Accept-Encoding:
|
179
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
180
|
+
Accept:
|
181
|
+
- "*/*"
|
182
|
+
User-Agent:
|
183
|
+
- Ruby
|
184
|
+
".crumb":
|
185
|
+
- d6162b9f2e248ec452bad69592fb87ea
|
186
|
+
response:
|
187
|
+
status:
|
188
|
+
code: 200
|
189
|
+
message: OK
|
190
|
+
headers:
|
191
|
+
Content-Length:
|
192
|
+
- '0'
|
193
|
+
Server:
|
194
|
+
- Jetty(8.y.z-SNAPSHOT)
|
195
|
+
body:
|
196
|
+
encoding: UTF-8
|
197
|
+
string: ''
|
198
|
+
http_version:
|
199
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
200
|
+
- request:
|
201
|
+
method: get
|
202
|
+
uri: http://localhost:8080/job/test_job/config.xml
|
203
|
+
body:
|
204
|
+
encoding: US-ASCII
|
205
|
+
string: ''
|
206
|
+
headers:
|
207
|
+
Accept-Encoding:
|
208
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
209
|
+
Accept:
|
210
|
+
- "*/*"
|
211
|
+
User-Agent:
|
212
|
+
- Ruby
|
213
|
+
Content-Type:
|
214
|
+
- text/xml
|
215
|
+
response:
|
216
|
+
status:
|
217
|
+
code: 200
|
218
|
+
message: OK
|
219
|
+
headers:
|
220
|
+
Content-Type:
|
221
|
+
- application/xml
|
222
|
+
Content-Length:
|
223
|
+
- '498'
|
224
|
+
Server:
|
225
|
+
- Jetty(8.y.z-SNAPSHOT)
|
226
|
+
body:
|
227
|
+
encoding: UTF-8
|
228
|
+
string: |-
|
229
|
+
<?xml version="1.0" encoding="UTF-8"?><project>
|
230
|
+
<keepDependencies>false</keepDependencies>
|
231
|
+
<properties/>
|
232
|
+
<scm class="hudson.scm.NullSCM"/>
|
233
|
+
<canRoam>false</canRoam>
|
234
|
+
<disabled>false</disabled>
|
235
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
236
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
237
|
+
<triggers/>
|
238
|
+
<concurrentBuild>false</concurrentBuild>
|
239
|
+
<builders/>
|
240
|
+
<publishers/>
|
241
|
+
<buildWrappers/>
|
242
|
+
<description>test</description></project>
|
243
|
+
http_version:
|
244
|
+
recorded_at: Mon, 17 Nov 2014 18:54:03 GMT
|
245
|
+
- request:
|
246
|
+
method: get
|
247
|
+
uri: http://localhost:8080/job/test_job/api/xml
|
248
|
+
body:
|
249
|
+
encoding: US-ASCII
|
250
|
+
string: ''
|
251
|
+
headers:
|
252
|
+
Accept-Encoding:
|
253
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
254
|
+
Accept:
|
255
|
+
- "*/*"
|
256
|
+
User-Agent:
|
257
|
+
- Ruby
|
258
|
+
Content-Type:
|
259
|
+
- text/xml
|
260
|
+
response:
|
261
|
+
status:
|
262
|
+
code: 200
|
263
|
+
message: OK
|
264
|
+
headers:
|
265
|
+
X-Jenkins:
|
266
|
+
- '1.583'
|
267
|
+
X-Jenkins-Session:
|
268
|
+
- cdced1b2
|
269
|
+
Content-Type:
|
270
|
+
- application/xml;charset=UTF-8
|
271
|
+
Content-Length:
|
272
|
+
- '581'
|
273
|
+
Server:
|
274
|
+
- Jetty(8.y.z-SNAPSHOT)
|
275
|
+
body:
|
276
|
+
encoding: UTF-8
|
277
|
+
string: "<freeStyleProject><description>test</description><displayName>test_job</displayName><name>test_job</name><url>http://localhost:8080/job/test_job/</url><buildable>true</buildable><build><number>37</number><url>http://localhost:8080/job/test_job/37/</url></build><build><number>36</number><url>http://localhost:8080/job/test_job/36/</url></build><build><number>35</number><url>http://localhost:8080/job/test_job/35/</url></build><build><number>34</number><url>http://localhost:8080/job/test_job/34/</url></build><build><number>33</number><url>http://localhost:8080/job/test_job/33/</url></build><build><number>32</number><url>http://localhost:8080/job/test_job/32/</url></build><build><number>31</number><url>http://localhost:8080/job/test_job/31/</url></build><build><number>30</number><url>http://localhost:8080/job/test_job/30/</url></build><build><number>29</number><url>http://localhost:8080/job/test_job/29/</url></build><build><number>28</number><url>http://localhost:8080/job/test_job/28/</url></build><build><number>27</number><url>http://localhost:8080/job/test_job/27/</url></build><build><number>26</number><url>http://localhost:8080/job/test_job/26/</url></build><build><number>25</number><url>http://localhost:8080/job/test_job/25/</url></build><build><number>24</number><url>http://localhost:8080/job/test_job/24/</url></build><build><number>23</number><url>http://localhost:8080/job/test_job/23/</url></build><build><number>22</number><url>http://localhost:8080/job/test_job/22/</url></build><build><number>21</number><url>http://localhost:8080/job/test_job/21/</url></build><build><number>20</number><url>http://localhost:8080/job/test_job/20/</url></build><build><number>19</number><url>http://localhost:8080/job/test_job/19/</url></build><build><number>18</number><url>http://localhost:8080/job/test_job/18/</url></build><build><number>17</number><url>http://localhost:8080/job/test_job/17/</url></build><build><number>16</number><url>http://localhost:8080/job/test_job/16/</url></build><build><number>15</number><url>http://localhost:8080/job/test_job/15/</url></build><build><number>14</number><url>http://localhost:8080/job/test_job/14/</url></build><build><number>13</number><url>http://localhost:8080/job/test_job/13/</url></build><build><number>12</number><url>http://localhost:8080/job/test_job/12/</url></build><build><number>11</number><url>http://localhost:8080/job/test_job/11/</url></build><build><number>10</number><url>http://localhost:8080/job/test_job/10/</url></build><build><number>9</number><url>http://localhost:8080/job/test_job/9/</url></build><build><number>8</number><url>http://localhost:8080/job/test_job/8/</url></build><build><number>7</number><url>http://localhost:8080/job/test_job/7/</url></build><build><number>6</number><url>http://localhost:8080/job/test_job/6/</url></build><build><number>5</number><url>http://localhost:8080/job/test_job/5/</url></build><build><number>4</number><url>http://localhost:8080/job/test_job/4/</url></build><build><number>3</number><url>http://localhost:8080/job/test_job/3/</url></build><build><number>2</number><url>http://localhost:8080/job/test_job/2/</url></build><build><number>1</number><url>http://localhost:8080/job/test_job/1/</url></build><color>blue</color><firstBuild><number>1</number><url>http://localhost:8080/job/test_job/1/</url></firstBuild><healthReport><description>Build
|
278
|
+
stability: No recent builds failed.</description><iconClassName>icon-health-80plus</iconClassName><iconUrl>health-80plus.png</iconUrl><score>100</score></healthReport><inQueue>false</inQueue><keepDependencies>false</keepDependencies><lastBuild><number>37</number><url>http://localhost:8080/job/test_job/37/</url></lastBuild><lastCompletedBuild><number>37</number><url>http://localhost:8080/job/test_job/37/</url></lastCompletedBuild><lastStableBuild><number>37</number><url>http://localhost:8080/job/test_job/37/</url></lastStableBuild><lastSuccessfulBuild><number>37</number><url>http://localhost:8080/job/test_job/37/</url></lastSuccessfulBuild><nextBuildNumber>38</nextBuildNumber><concurrentBuild>false</concurrentBuild><scm></scm></freeStyleProject>"
|
279
|
+
http_version:
|
280
|
+
recorded_at: Mon, 17 Nov 2014 18:54:03 GMT
|
281
|
+
recorded_with: VCR 2.9.3
|