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