Jenkins Rest API get the commits of a particular build Jenkins Rest API get the commits of a particular build jenkins jenkins

Jenkins Rest API get the commits of a particular build


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[*[*]]