Exported API reports all jobs twice. It only seem to affect jobs scoped to jenkins.
$JENKINS_URL/api/xml:
<hudson> <assignedLabel/> <mode>NORMAL</mode> <nodeDescription>the master Jenkins node</nodeDescription> <nodeName/> <numExecutors>2</numExecutors> <job> <name>bash</name> <url>http://localhost:8080/job/bash/</url> <color>blue</color> </job> <job> <name>bash</name> <url>http://localhost:8080/job/bash/</url> <color>blue</color> </job> <overallLoad/> <primaryView> <name>All</name> <url>http://localhost:8080/</url> </primaryView> <quietingDown>false</quietingDown> <slaveAgentPort>0</slaveAgentPort> <unlabeledLoad/> <useCrumbs>false</useCrumbs> <useSecurity>false</useSecurity> <view> <name>All</name> <url>http://localhost:8080/</url> </view> </hudson>
It works correctly when jenkins is build with java 7 and run on either 7 or 8. Though it is present when build with java 8 (and run on either 7 or 8). This is reproduced by hudson.model.ApiTest.wrappedMultipleItems. Tested on OpenJDK 1.7.0_75 and OpenJDK 1.8.0_31.
- links to