Jenkins Clover REST API Jenkins Clover REST API jenkins jenkins

Jenkins Clover REST API


Unfortunately the Jenkins Clover Plugin does not expose any REST API. What you could try to do is to write a plugin which would expose content of clover.xml file via REST. In case you're interested in coverage summary only (i.e. not a coverage for every single source line) then you could also read build results metadata. Clover Plugin already parses the clover.xml file and stores coverage %. See:

https://github.com/jenkinsci/clover-plugin/blob/master/src/main/java/hudson/plugins/clover/CloverPublisher.java#L196