You can add more depth for more info. /job/<JOBNAME>/api/xml?depth=1
then look at the <build> list and find the most recent status. ________________________________ From: jenkinsci-users@googlegroups.com <jenkinsci-users@googlegroups.com> on behalf of Sajith Kariyawasam <saj...@gmail.com> Sent: Monday, October 20, 2014 7:44 AM To: jenkinsci-users@googlegroups.com Subject: How to check the current status of a Job, via REST API Hi all, I want to check the current status of a job, via REST API.. I found /job/<JOBNAME>/api/xml gives me the xml with information, but I couldn't find any element related to "current status". I want to get whether the job is currently being built, or built has completed with success or failure. Is there any way I can get that information ? I saw the color tag <color>blue</color> Is that a recommended option to use here? Thanks, Sajith -- Best Regards Sajith -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/d/optout<https://urldefense.proofpoint.com/v1/url?u=https://groups.google.com/d/optout&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=P%2FDbhm7GMaM%2FtPTZjlK%2F8lebpERVSZcf2B%2BqCod7tGs%3D%0A&m=wIyLv0x1k3AzQymYliI4mtUBBak%2BYo037hesDf3Wvng%3D%0A&s=e591aaad2cd7c342bf8e5bc47410b95e1bb097c9c3f963438346a95d1424fc96>. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.