I want to retrieve the build summary for last 3 days from Jenkins using its rest API's and save the result as an XML file, How I can proceed with this?
Asked
Active
Viewed 2.7k times
6
-
Go to `/api/` on your Jenkins instance. – StephenKing Aug 18 '17 at 07:29
-
Thanks Stephen for the inputs :) – Mukul Aug 18 '17 at 08:39
1 Answers
14
You could read full guide in:
http://YOUR_JENKINS:8080/job/YOUR_JOB/api/
The build sumary in XML format:
http://YOUR_JENKINS:8080/job/YOUR_JOB/api/xml
Retrieve the name of the first 10 builds
http://YOUR_JENKINS:8080/job/YOUR_JOB/api/xml?%20tree=jobs[name]{0,10}

Tuan
- 2,303
- 2
- 25
- 37