-1zsga
Last Updated: February 25, 2016
·
6.234K
· rodnaph

Using XPath with Jenkins XML API

Just found out you can use XPath to interrogate the Jenkins XML API, right from the URL...

http://HUDSON_URL/job/JOBNAME/api/xml?xpath=//lastBuild/number/text()

Which will return just the text from that node, for example...

173

Sweeeeeeeet.

1 Response
Add your response

13108

Do you know how to make this work with later versions after the additional "secure" API changes?

over 1 year ago ·