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.
Written by Rhodri Pugh
Related protips
1 Response
Do you know how to make this work with later versions after the additional "secure" API changes?
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jenkins
Authors
julianchurchill
43.98K
denver
12.36K
Related Tags
#jenkins
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#