Coverage results via REST API
jenkins
Solution
If you append "?depth=2" to your query, you'll get additional percentage info. Higher values for depth show the individual file coverage.
Problem
I'm trying to get coverage results from Jenkins using the REST API and the Cobertura plugin. It looks like I can get the top level information about coverage results since the Cobertura plugin puts the bottom line results in the healthReport of the job. However, I would like more detailed information about code coverage. So I tried: ``` <jenkins url>/job/<job>/<buildNo>/cobertura/api/json ``` I get just empty results. I assume from this the Cobertura plugin just didn't implement the API for returning this information. Is there another way to get this information programatically other than modifying the Cobertura plugin?