You can get assembly data for your report through the Jenkins API. For this work, you can extract a list of collections with information about the duration using something like:
http://jenkins:8080/job/my-job/api/json?tree=builds[id,number,duration,timestamp,builtOn]
To view a list of all the assembly data available by the API for this job:
http://jenkins:8080/job/my-job/api/json?tree=builds[*]
As soon as you have a request that receives the job information that you need for your report should be simple to sort through the work.
Most Jenkins pages have a link at the bottom of the REST API that describes a bit of API access for this page, for example. http://jenkins:8080/job/my-job/api .
source share