Use the following URLs to access the REST data:

Description of Remote API
http://SERVER/job/JOB_NAME/BUILD_NUMBER/sloccountResult/api

Data
http://SERVER/job/JOB_NAME/BUILD_NUMBER/sloccountResult/api/xml
http://SERVER/job/JOB_NAME/BUILD_NUMBER/sloccountResult/api/xml?depth=1
http://SERVER/job/JOB_NAME/BUILD_NUMBER/sloccountResult/api/json
http://SERVER/job/JOB_NAME/BUILD_NUMBER/sloccountResult/api/json?depth=1
etc.

Example of XML data:

<sloccountReportStatistics>
	<language>
		<files>14</files>
		<lines>214</lines>
		<name>php</name>
	</language>
	<language>
		<files>7</files>
		<lines>513</lines>
		<name>xml</name>
	</language>
	<language>
		<files>116</files>
		<lines>8174</lines>
		<name>java</name>
	</language>
	<language>
		<files>4</files>
		<lines>34</lines>
		<name>sh</name>
	</language>
	<totalFiles>141</totalFiles>
	<totalLanguages>4</totalLanguages>
	<totalLines>8935</totalLines>
</sloccountReportStatistics>


Example of JSON data:

{
	"languages":
	[
		{"files":14,"lines":214,"name":"php"},
		{"files":7,"lines":513,"name":"xml"},
		{"files":116,"lines":8174,"name":"java"},
		{"files":4,"lines":34,"name":"sh"}
	],
	"totalFiles":141,
	"totalLanguages":4,
	"totalLines":8935
}
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to