JENKS API REST: Get Coverage Report

I am working on a Jenkins REST API consumer application. I am looking for a way to capture the JaCoCo code coverage report (link to the code coverage report page) from Jenkins using the REST API. It seems that the JaCoCo plugin for Jenkins does not provide any information about REST. Can anyone suggest how we can get this information on REST? Or any other options?

Thanks,

Arawindome

+4
source share
1 answer

You can get Jacoco code coverage report by calling

https: ./// view / test / work // lastSuccessfulBuild / jacoco / API / XML

This will give a report on the coverage of the code in xml format and from there you can get what you want.

thank

+2
source

Source: https://habr.com/ru/post/1528942/


All Articles