6

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.

2 Answers 2

6

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

Sign up to request clarification or add additional context in comments.

Comments

1

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

1 Comment

Do you know from which version of jenkins this changes has been added?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.