Jenkins-API
view release on metacpan or search on metacpan
t/live-query.t view on Meta::CPAN
'Date',
'Tue, 26 Sep 2017 18:02:40 GMT',
'Server',
'Jetty(9.2.z-SNAPSHOT)',
'Content-Type',
'application/json;charset=UTF-8',
'Client-Date',
'Tue, 26 Sep 2017 18:02:40 GMT',
'Client-Peer',
'172.17.0.2:8080',
'Client-Response-Num',
1,
'X-Content-Type-Options',
'nosniff',
'X-Jenkins',
'2.60.3',
'X-Jenkins-Session',
'c70f6e5a'
],
'code' => '200',
'msg' => 'OK',
'content' =>
'{"_class":"hudson.model.Queue","discoverableItems":[],"items":[]}'
},
'req' => {
'url' => 'http://172.17.0.2:8080/queue/api/json?depth=1',
'content' => '',
'method' => 'GET'
}
},
{
'req' => {
'url' => 'http://172.17.0.2:8080/overallLoad/api/json',
'content' => '',
'method' => 'GET'
},
'res' => {
'headers' => [
'Connection',
'close',
'Date',
'Tue, 26 Sep 2017 18:02:40 GMT',
'Server',
'Jetty(9.2.z-SNAPSHOT)',
'Content-Type',
'application/json;charset=UTF-8',
'Client-Date',
'Tue, 26 Sep 2017 18:02:40 GMT',
'Client-Peer',
'172.17.0.2:8080',
'Client-Response-Num',
1,
'X-Content-Type-Options',
'nosniff',
'X-Jenkins',
'2.60.3',
'X-Jenkins-Session',
'c70f6e5a'
],
'content' =>
'{"_class":"hudson.model.OverallLoadStatistics","availableExecutors":{},"busyExecutors":{},"connectingExecutors":{},"definedExecutors":{},"idleExecutors":{},"onlineExecutors":{},"queueLength":{},"totalExecutors":{},"totalQueueLength":{}}',
'msg' => 'OK',
'code' => '200'
}
},
{
'res' => {
'msg' => 'OK',
'code' => '200',
'content' => '<?xml version=\'1.0\'?>
<project>
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties/>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>false</concurrentBuild>
<builders/>
<publishers/>
<buildWrappers/>
</project>',
'headers' => [
'Connection', 'close',
'Date', 'Tue, 26 Sep 2017 18:02:40 GMT',
'Server', 'Jetty(9.2.z-SNAPSHOT)',
'Content-Type', 'application/xml',
'Client-Date', 'Tue, 26 Sep 2017 18:02:40 GMT',
'Client-Peer', '172.17.0.2:8080',
'Client-Response-Num', 1,
'X-Content-Type-Options', 'nosniff'
]
},
'req' => {
'content' => '',
'method' => 'GET',
'url' => 'http://172.17.0.2:8080/job/Test-Project/config.xml'
}
},
{
'req' => {
'method' => 'GET',
'content' => '',
'url' => 'http://172.17.0.2:8080/job/Test-Project/api/json'
},
'res' => {
'headers' => [
'Connection',
'close',
'Date',
'Tue, 26 Sep 2017 18:02:40 GMT',
'Server',
'Jetty(9.2.z-SNAPSHOT)',
'Content-Type',
'application/json;charset=UTF-8',
'Client-Date',
'Tue, 26 Sep 2017 18:02:40 GMT',
( run in 1.466 second using v1.01-cache-2.11-cpan-39bf76dae61 )