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,189 @@
|
|
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:52 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
|
+
- '298'
|
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>notbuilt_anime</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:52 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:52 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
|
+
- '366'
|
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>1</number><url>http://localhost:8080/job/test_job/1/</url></build><color>notbuilt_anime</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>1</number><url>http://localhost:8080/job/test_job/1/</url></lastBuild><lastCompletedBuild><number>1</number><url>http://localhost:8080/job/test_job/1/</url></lastCompletedBuild><lastStableBuild><number>1</number><url>http://localhost:8080/job/test_job/1/</url></lastStableBuild><lastSuccessfulBuild><number>1</number><url>http://localhost:8080/job/test_job/1/</url></lastSuccessfulBuild><nextBuildNumber>2</nextBuildNumber><concurrentBuild>false</concurrentBuild><scm></scm></freeStyleProject>"
|
154
|
+
http_version:
|
155
|
+
recorded_at: Fri, 07 Nov 2014 06:42:52 GMT
|
156
|
+
- request:
|
157
|
+
method: post
|
158
|
+
uri: http://localhost:8080/job/test_job/build
|
159
|
+
body:
|
160
|
+
encoding: US-ASCII
|
161
|
+
string: delay=0sec
|
162
|
+
headers:
|
163
|
+
Accept-Encoding:
|
164
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
165
|
+
Accept:
|
166
|
+
- "*/*"
|
167
|
+
User-Agent:
|
168
|
+
- Ruby
|
169
|
+
Content-Type:
|
170
|
+
- application/x-www-form-urlencoded
|
171
|
+
".crumb":
|
172
|
+
- d6162b9f2e248ec452bad69592fb87ea
|
173
|
+
response:
|
174
|
+
status:
|
175
|
+
code: 201
|
176
|
+
message: Created
|
177
|
+
headers:
|
178
|
+
Location:
|
179
|
+
- http://localhost:8080/queue/item/7/
|
180
|
+
Content-Length:
|
181
|
+
- '0'
|
182
|
+
Server:
|
183
|
+
- Jetty(8.y.z-SNAPSHOT)
|
184
|
+
body:
|
185
|
+
encoding: UTF-8
|
186
|
+
string: ''
|
187
|
+
http_version:
|
188
|
+
recorded_at: Fri, 07 Nov 2014 06:42:52 GMT
|
189
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,192 @@
|
|
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:53 GMT
|
39
|
+
- request:
|
40
|
+
method: get
|
41
|
+
uri: http://localhost:8080/crumbIssuer/api/xml
|
42
|
+
body:
|
43
|
+
encoding: US-ASCII
|
44
|
+
string: ''
|
45
|
+
headers:
|
46
|
+
Accept-Encoding:
|
47
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
48
|
+
Accept:
|
49
|
+
- "*/*"
|
50
|
+
User-Agent:
|
51
|
+
- Ruby
|
52
|
+
Content-Type:
|
53
|
+
- text/xml
|
54
|
+
response:
|
55
|
+
status:
|
56
|
+
code: 200
|
57
|
+
message: OK
|
58
|
+
headers:
|
59
|
+
X-Jenkins:
|
60
|
+
- '1.583'
|
61
|
+
X-Jenkins-Session:
|
62
|
+
- 394516d7
|
63
|
+
Content-Type:
|
64
|
+
- application/xml;charset=UTF-8
|
65
|
+
Content-Length:
|
66
|
+
- '107'
|
67
|
+
Server:
|
68
|
+
- Jetty(8.y.z-SNAPSHOT)
|
69
|
+
body:
|
70
|
+
encoding: UTF-8
|
71
|
+
string: "<defaultCrumbIssuer><crumb>d6162b9f2e248ec452bad69592fb87ea</crumb><crumbRequestField>.crumb</crumbRequestField></defaultCrumbIssuer>"
|
72
|
+
http_version:
|
73
|
+
recorded_at: Fri, 07 Nov 2014 06:42:53 GMT
|
74
|
+
- request:
|
75
|
+
method: get
|
76
|
+
uri: http://localhost:8080/api/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
|
+
X-Jenkins:
|
95
|
+
- '1.583'
|
96
|
+
X-Jenkins-Session:
|
97
|
+
- 394516d7
|
98
|
+
Content-Type:
|
99
|
+
- application/xml;charset=UTF-8
|
100
|
+
Content-Length:
|
101
|
+
- '292'
|
102
|
+
Server:
|
103
|
+
- Jetty(8.y.z-SNAPSHOT)
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: "<hudson><assignedLabel></assignedLabel><mode>NORMAL</mode><nodeDescription>the
|
107
|
+
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>"
|
108
|
+
http_version:
|
109
|
+
recorded_at: Fri, 07 Nov 2014 06:42:53 GMT
|
110
|
+
- request:
|
111
|
+
method: get
|
112
|
+
uri: http://localhost:8080/job/test_job/config.xml
|
113
|
+
body:
|
114
|
+
encoding: US-ASCII
|
115
|
+
string: ''
|
116
|
+
headers:
|
117
|
+
Accept-Encoding:
|
118
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
119
|
+
Accept:
|
120
|
+
- "*/*"
|
121
|
+
User-Agent:
|
122
|
+
- Ruby
|
123
|
+
Content-Type:
|
124
|
+
- text/xml
|
125
|
+
response:
|
126
|
+
status:
|
127
|
+
code: 200
|
128
|
+
message: OK
|
129
|
+
headers:
|
130
|
+
Content-Type:
|
131
|
+
- application/xml
|
132
|
+
Content-Length:
|
133
|
+
- '468'
|
134
|
+
Server:
|
135
|
+
- Jetty(8.y.z-SNAPSHOT)
|
136
|
+
body:
|
137
|
+
encoding: UTF-8
|
138
|
+
string: |-
|
139
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
140
|
+
<project>
|
141
|
+
<keepDependencies>false</keepDependencies>
|
142
|
+
<properties/>
|
143
|
+
<scm class="hudson.scm.NullSCM"/>
|
144
|
+
<canRoam>false</canRoam>
|
145
|
+
<disabled>false</disabled>
|
146
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
147
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
148
|
+
<triggers/>
|
149
|
+
<concurrentBuild>false</concurrentBuild>
|
150
|
+
<builders/>
|
151
|
+
<publishers/>
|
152
|
+
<buildWrappers/>
|
153
|
+
</project>
|
154
|
+
http_version:
|
155
|
+
recorded_at: Fri, 07 Nov 2014 06:42:53 GMT
|
156
|
+
- request:
|
157
|
+
method: get
|
158
|
+
uri: http://localhost:8080/job/test_job/api/xml
|
159
|
+
body:
|
160
|
+
encoding: US-ASCII
|
161
|
+
string: ''
|
162
|
+
headers:
|
163
|
+
Accept-Encoding:
|
164
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
165
|
+
Accept:
|
166
|
+
- "*/*"
|
167
|
+
User-Agent:
|
168
|
+
- Ruby
|
169
|
+
Content-Type:
|
170
|
+
- text/xml
|
171
|
+
response:
|
172
|
+
status:
|
173
|
+
code: 200
|
174
|
+
message: OK
|
175
|
+
headers:
|
176
|
+
X-Jenkins:
|
177
|
+
- '1.583'
|
178
|
+
X-Jenkins-Session:
|
179
|
+
- 394516d7
|
180
|
+
Content-Type:
|
181
|
+
- application/xml;charset=UTF-8
|
182
|
+
Content-Length:
|
183
|
+
- '379'
|
184
|
+
Server:
|
185
|
+
- Jetty(8.y.z-SNAPSHOT)
|
186
|
+
body:
|
187
|
+
encoding: UTF-8
|
188
|
+
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_anime</color><firstBuild><number>1</number><url>http://localhost:8080/job/test_job/1/</url></firstBuild><healthReport><description>Build
|
189
|
+
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>1</number><url>http://localhost:8080/job/test_job/1/</url></lastCompletedBuild><lastStableBuild><number>1</number><url>http://localhost:8080/job/test_job/1/</url></lastStableBuild><lastSuccessfulBuild><number>1</number><url>http://localhost:8080/job/test_job/1/</url></lastSuccessfulBuild><nextBuildNumber>3</nextBuildNumber><concurrentBuild>false</concurrentBuild><scm></scm></freeStyleProject>"
|
190
|
+
http_version:
|
191
|
+
recorded_at: Fri, 07 Nov 2014 06:42:53 GMT
|
192
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,410 @@
|
|
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
|
+
- '296'
|
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_anime</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:53 GMT
|
39
|
+
- request:
|
40
|
+
method: get
|
41
|
+
uri: http://localhost:8080/crumbIssuer/api/xml
|
42
|
+
body:
|
43
|
+
encoding: US-ASCII
|
44
|
+
string: ''
|
45
|
+
headers:
|
46
|
+
Accept-Encoding:
|
47
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
48
|
+
Accept:
|
49
|
+
- "*/*"
|
50
|
+
User-Agent:
|
51
|
+
- Ruby
|
52
|
+
Content-Type:
|
53
|
+
- text/xml
|
54
|
+
response:
|
55
|
+
status:
|
56
|
+
code: 200
|
57
|
+
message: OK
|
58
|
+
headers:
|
59
|
+
X-Jenkins:
|
60
|
+
- '1.583'
|
61
|
+
X-Jenkins-Session:
|
62
|
+
- 394516d7
|
63
|
+
Content-Type:
|
64
|
+
- application/xml;charset=UTF-8
|
65
|
+
Content-Length:
|
66
|
+
- '107'
|
67
|
+
Server:
|
68
|
+
- Jetty(8.y.z-SNAPSHOT)
|
69
|
+
body:
|
70
|
+
encoding: UTF-8
|
71
|
+
string: "<defaultCrumbIssuer><crumb>d6162b9f2e248ec452bad69592fb87ea</crumb><crumbRequestField>.crumb</crumbRequestField></defaultCrumbIssuer>"
|
72
|
+
http_version:
|
73
|
+
recorded_at: Fri, 07 Nov 2014 06:42:53 GMT
|
74
|
+
- request:
|
75
|
+
method: get
|
76
|
+
uri: http://localhost:8080/api/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
|
+
X-Jenkins:
|
95
|
+
- '1.583'
|
96
|
+
X-Jenkins-Session:
|
97
|
+
- 394516d7
|
98
|
+
Content-Type:
|
99
|
+
- application/xml;charset=UTF-8
|
100
|
+
Content-Length:
|
101
|
+
- '292'
|
102
|
+
Server:
|
103
|
+
- Jetty(8.y.z-SNAPSHOT)
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: "<hudson><assignedLabel></assignedLabel><mode>NORMAL</mode><nodeDescription>the
|
107
|
+
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>"
|
108
|
+
http_version:
|
109
|
+
recorded_at: Fri, 07 Nov 2014 06:42:53 GMT
|
110
|
+
- request:
|
111
|
+
method: get
|
112
|
+
uri: http://localhost:8080/job/test_job/config.xml
|
113
|
+
body:
|
114
|
+
encoding: US-ASCII
|
115
|
+
string: ''
|
116
|
+
headers:
|
117
|
+
Accept-Encoding:
|
118
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
119
|
+
Accept:
|
120
|
+
- "*/*"
|
121
|
+
User-Agent:
|
122
|
+
- Ruby
|
123
|
+
Content-Type:
|
124
|
+
- text/xml
|
125
|
+
response:
|
126
|
+
status:
|
127
|
+
code: 200
|
128
|
+
message: OK
|
129
|
+
headers:
|
130
|
+
Content-Type:
|
131
|
+
- application/xml
|
132
|
+
Content-Length:
|
133
|
+
- '468'
|
134
|
+
Server:
|
135
|
+
- Jetty(8.y.z-SNAPSHOT)
|
136
|
+
body:
|
137
|
+
encoding: UTF-8
|
138
|
+
string: |-
|
139
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
140
|
+
<project>
|
141
|
+
<keepDependencies>false</keepDependencies>
|
142
|
+
<properties/>
|
143
|
+
<scm class="hudson.scm.NullSCM"/>
|
144
|
+
<canRoam>false</canRoam>
|
145
|
+
<disabled>false</disabled>
|
146
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
147
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
148
|
+
<triggers/>
|
149
|
+
<concurrentBuild>false</concurrentBuild>
|
150
|
+
<builders/>
|
151
|
+
<publishers/>
|
152
|
+
<buildWrappers/>
|
153
|
+
</project>
|
154
|
+
http_version:
|
155
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
156
|
+
- request:
|
157
|
+
method: get
|
158
|
+
uri: http://localhost:8080/job/test_job/api/xml
|
159
|
+
body:
|
160
|
+
encoding: US-ASCII
|
161
|
+
string: ''
|
162
|
+
headers:
|
163
|
+
Accept-Encoding:
|
164
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
165
|
+
Accept:
|
166
|
+
- "*/*"
|
167
|
+
User-Agent:
|
168
|
+
- Ruby
|
169
|
+
Content-Type:
|
170
|
+
- text/xml
|
171
|
+
response:
|
172
|
+
status:
|
173
|
+
code: 200
|
174
|
+
message: OK
|
175
|
+
headers:
|
176
|
+
X-Jenkins:
|
177
|
+
- '1.583'
|
178
|
+
X-Jenkins-Session:
|
179
|
+
- 394516d7
|
180
|
+
Content-Type:
|
181
|
+
- application/xml;charset=UTF-8
|
182
|
+
Content-Length:
|
183
|
+
- '372'
|
184
|
+
Server:
|
185
|
+
- Jetty(8.y.z-SNAPSHOT)
|
186
|
+
body:
|
187
|
+
encoding: UTF-8
|
188
|
+
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
|
189
|
+
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>"
|
190
|
+
http_version:
|
191
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
192
|
+
- request:
|
193
|
+
method: post
|
194
|
+
uri: http://localhost:8080/createItem
|
195
|
+
body:
|
196
|
+
encoding: US-ASCII
|
197
|
+
string: name=copy_of_test_job&mode=copy&from=test_job
|
198
|
+
headers:
|
199
|
+
Accept-Encoding:
|
200
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
201
|
+
Accept:
|
202
|
+
- "*/*"
|
203
|
+
User-Agent:
|
204
|
+
- Ruby
|
205
|
+
Content-Type:
|
206
|
+
- application/x-www-form-urlencoded
|
207
|
+
".crumb":
|
208
|
+
- d6162b9f2e248ec452bad69592fb87ea
|
209
|
+
response:
|
210
|
+
status:
|
211
|
+
code: 302
|
212
|
+
message: Found
|
213
|
+
headers:
|
214
|
+
Location:
|
215
|
+
- http://localhost:8080/job/copy_of_test_job/configure
|
216
|
+
Content-Length:
|
217
|
+
- '0'
|
218
|
+
Server:
|
219
|
+
- Jetty(8.y.z-SNAPSHOT)
|
220
|
+
body:
|
221
|
+
encoding: UTF-8
|
222
|
+
string: ''
|
223
|
+
http_version:
|
224
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
225
|
+
- request:
|
226
|
+
method: get
|
227
|
+
uri: http://localhost:8080/crumbIssuer/api/xml
|
228
|
+
body:
|
229
|
+
encoding: US-ASCII
|
230
|
+
string: ''
|
231
|
+
headers:
|
232
|
+
Accept-Encoding:
|
233
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
234
|
+
Accept:
|
235
|
+
- "*/*"
|
236
|
+
User-Agent:
|
237
|
+
- Ruby
|
238
|
+
Content-Type:
|
239
|
+
- text/xml
|
240
|
+
response:
|
241
|
+
status:
|
242
|
+
code: 200
|
243
|
+
message: OK
|
244
|
+
headers:
|
245
|
+
X-Jenkins:
|
246
|
+
- '1.583'
|
247
|
+
X-Jenkins-Session:
|
248
|
+
- 394516d7
|
249
|
+
Content-Type:
|
250
|
+
- application/xml;charset=UTF-8
|
251
|
+
Content-Length:
|
252
|
+
- '107'
|
253
|
+
Server:
|
254
|
+
- Jetty(8.y.z-SNAPSHOT)
|
255
|
+
body:
|
256
|
+
encoding: UTF-8
|
257
|
+
string: "<defaultCrumbIssuer><crumb>d6162b9f2e248ec452bad69592fb87ea</crumb><crumbRequestField>.crumb</crumbRequestField></defaultCrumbIssuer>"
|
258
|
+
http_version:
|
259
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
260
|
+
- request:
|
261
|
+
method: get
|
262
|
+
uri: http://localhost:8080/api/xml
|
263
|
+
body:
|
264
|
+
encoding: US-ASCII
|
265
|
+
string: ''
|
266
|
+
headers:
|
267
|
+
Accept-Encoding:
|
268
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
269
|
+
Accept:
|
270
|
+
- "*/*"
|
271
|
+
User-Agent:
|
272
|
+
- Ruby
|
273
|
+
Content-Type:
|
274
|
+
- text/xml
|
275
|
+
response:
|
276
|
+
status:
|
277
|
+
code: 200
|
278
|
+
message: OK
|
279
|
+
headers:
|
280
|
+
X-Jenkins:
|
281
|
+
- '1.583'
|
282
|
+
X-Jenkins-Session:
|
283
|
+
- 394516d7
|
284
|
+
Content-Type:
|
285
|
+
- application/xml;charset=UTF-8
|
286
|
+
Content-Length:
|
287
|
+
- '311'
|
288
|
+
Server:
|
289
|
+
- Jetty(8.y.z-SNAPSHOT)
|
290
|
+
body:
|
291
|
+
encoding: UTF-8
|
292
|
+
string: "<hudson><assignedLabel></assignedLabel><mode>NORMAL</mode><nodeDescription>the
|
293
|
+
master Jenkins node</nodeDescription><nodeName></nodeName><numExecutors>2</numExecutors><job><name>copy_of_test_job</name><url>http://localhost:8080/job/copy_of_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>"
|
294
|
+
http_version:
|
295
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
296
|
+
- request:
|
297
|
+
method: get
|
298
|
+
uri: http://localhost:8080/job/copy_of_test_job/config.xml
|
299
|
+
body:
|
300
|
+
encoding: US-ASCII
|
301
|
+
string: ''
|
302
|
+
headers:
|
303
|
+
Accept-Encoding:
|
304
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
305
|
+
Accept:
|
306
|
+
- "*/*"
|
307
|
+
User-Agent:
|
308
|
+
- Ruby
|
309
|
+
Content-Type:
|
310
|
+
- text/xml
|
311
|
+
response:
|
312
|
+
status:
|
313
|
+
code: 200
|
314
|
+
message: OK
|
315
|
+
headers:
|
316
|
+
Content-Type:
|
317
|
+
- application/xml
|
318
|
+
Content-Length:
|
319
|
+
- '468'
|
320
|
+
Server:
|
321
|
+
- Jetty(8.y.z-SNAPSHOT)
|
322
|
+
body:
|
323
|
+
encoding: UTF-8
|
324
|
+
string: |-
|
325
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
326
|
+
<project>
|
327
|
+
<keepDependencies>false</keepDependencies>
|
328
|
+
<properties/>
|
329
|
+
<scm class="hudson.scm.NullSCM"/>
|
330
|
+
<canRoam>false</canRoam>
|
331
|
+
<disabled>false</disabled>
|
332
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
333
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
334
|
+
<triggers/>
|
335
|
+
<concurrentBuild>false</concurrentBuild>
|
336
|
+
<builders/>
|
337
|
+
<publishers/>
|
338
|
+
<buildWrappers/>
|
339
|
+
</project>
|
340
|
+
http_version:
|
341
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
342
|
+
- request:
|
343
|
+
method: get
|
344
|
+
uri: http://localhost:8080/job/copy_of_test_job/api/xml
|
345
|
+
body:
|
346
|
+
encoding: US-ASCII
|
347
|
+
string: ''
|
348
|
+
headers:
|
349
|
+
Accept-Encoding:
|
350
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
351
|
+
Accept:
|
352
|
+
- "*/*"
|
353
|
+
User-Agent:
|
354
|
+
- Ruby
|
355
|
+
Content-Type:
|
356
|
+
- text/xml
|
357
|
+
response:
|
358
|
+
status:
|
359
|
+
code: 200
|
360
|
+
message: OK
|
361
|
+
headers:
|
362
|
+
X-Jenkins:
|
363
|
+
- '1.583'
|
364
|
+
X-Jenkins-Session:
|
365
|
+
- 394516d7
|
366
|
+
Content-Type:
|
367
|
+
- application/xml;charset=UTF-8
|
368
|
+
Content-Length:
|
369
|
+
- '200'
|
370
|
+
Server:
|
371
|
+
- Jetty(8.y.z-SNAPSHOT)
|
372
|
+
body:
|
373
|
+
encoding: UTF-8
|
374
|
+
string: "<freeStyleProject><displayName>copy_of_test_job</displayName><name>copy_of_test_job</name><url>http://localhost:8080/job/copy_of_test_job/</url><buildable>false</buildable><color>notbuilt</color><inQueue>false</inQueue><keepDependencies>false</keepDependencies><nextBuildNumber>1</nextBuildNumber><concurrentBuild>false</concurrentBuild><scm></scm></freeStyleProject>"
|
375
|
+
http_version:
|
376
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
377
|
+
- request:
|
378
|
+
method: post
|
379
|
+
uri: http://localhost:8080/job/copy_of_test_job/doDelete
|
380
|
+
body:
|
381
|
+
encoding: US-ASCII
|
382
|
+
string: ''
|
383
|
+
headers:
|
384
|
+
Accept-Encoding:
|
385
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
386
|
+
Accept:
|
387
|
+
- "*/*"
|
388
|
+
User-Agent:
|
389
|
+
- Ruby
|
390
|
+
Content-Type:
|
391
|
+
- application/x-www-form-urlencoded
|
392
|
+
".crumb":
|
393
|
+
- d6162b9f2e248ec452bad69592fb87ea
|
394
|
+
response:
|
395
|
+
status:
|
396
|
+
code: 302
|
397
|
+
message: Found
|
398
|
+
headers:
|
399
|
+
Location:
|
400
|
+
- http://localhost:8080/
|
401
|
+
Content-Length:
|
402
|
+
- '0'
|
403
|
+
Server:
|
404
|
+
- Jetty(8.y.z-SNAPSHOT)
|
405
|
+
body:
|
406
|
+
encoding: UTF-8
|
407
|
+
string: ''
|
408
|
+
http_version:
|
409
|
+
recorded_at: Fri, 07 Nov 2014 06:42:54 GMT
|
410
|
+
recorded_with: VCR 2.9.3
|