I'm trying to get the commits list of a particular build in jenkins. However Jenkins Rest API documentation does not provide any comprehensive details about how to get this done.
Any help?.. suggestion?
Thanks.
did you try this?
For changeSet
, you can use http://jenkins/job/myjob/../api/json?tree=changeSet[*[*]]
to retrieve everything. Use nested square braces for specific sub-subproperties, e.g. http://jenkins/job/myjob/../api/json?tree=changeSet[items[revision]]
reference : here
changeSet keyword seems to be working fine with Perforce. But for git there is a minor change. It is changeSets.
So for git it would be http://jenkins/job/myjob/../api/json?tree=changeSets[*[*]]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With