-1zsga
Last Updated: February 25, 2016
·
5.027K
· rodnaph
6e283a554e50ee3d10e5386f85816463

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.

Say Thanks
Respond

1 Response
Add your response

13108
60e01f065785145eb9cec924da7fa096

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

over 1 year ago ·