On 04/11/2013 11:30 AM, Peter Miklosko wrote:
At the moment I use it to build URL (HOSTNAME/job/JOB_NAME/BUILD_NUMBER/api/json?wrapper=changes&xpath=//changeSet) to be able to query for change log through JSON.
If you are passing this URL to an external program (i.e. it is not being displayed as a link from a Jenkins web page) then computing the absolute URL is the right thing to do.
(BTW use ?tree in preference to ?xpath, and note that ?xpath only works for api/xml anyway!)
So is there any other better way to get hold of change log?
From code running inside Jenkins certainly there is. (Any remote API URLs can be read off more or less directly as Java getter-method calls.) -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
