This usually works:
http://localhost:8080/jenkins/view/All/job/MyJob/lastSuccessfulBuild/api/xml?xpath=*/description/text()
The problem is that people sometimes put html tags in their descriptions.
For instance:
9.0.0.10027 <BR> Uploaded to Gold Master Server
When that happens, the xpath fails with the message:
XPath "*/description/text()" matched 5 nodes. Create XPath that only matches
one, or use the "wrapper" query parameter to wrap them all under a root
element.
I use the "wrapper query parameter" to return raw xml, but then I have to
parse it out, and parsing it out is getting more tricky than it should.
Is there an easy way to get the *description* of the lastSuccessfulBuild
from a URL?
Thanks!
--
View this message in context: http://jenkins.361315.n4.nabble.com/Getting-the-build-description-from-a-URL-tp4310567p4310567.html
Sent from the Jenkins users mailing list archive at Nabble.com.