Jenkins build how to access the build.xml data after the build activity finishes.

13 views
Skip to first unread message

Raj

unread,
May 20, 2018, 1:31:10 AM5/20/18
to Jenkins Users
Hello,

I have a task to create a report 

1: of the time taken by a Jenkins build, [ i can then have a trend analysis of the time taken by the build over time as well as the success or failure report ] 
2: the sha sum of the commit 
3: Build Status 

I do realize that there might be some plugins but I would like to take the approach to create a plugin and then have the users of pipeline to include it in there build and I can auto monitor and tweak the parameters for the data point to be monitored easily. I can also save this data to a external database so that I can archive the results for a longer time without impacting space etc usage on the Jenkins server.

I did some basic research and seems like Jenkins build area has all this data in the file build.xml. 

This file gets created at the end of the build, so how do i access it in the context of the running build ? so in short as a last step how can i read the data in build.xml and archive it to a db.

Any help, directions in this matter will be greatly appreciated. 


Thank you for the time in this matter 

Regards,
Raj
Reply all
Reply to author
Forward
0 new messages