I noticed that it just pulled the last 100 versions, which looked like the default version. I was testing a basic curl call and it could retrieve the last 100 nicely, see how I retrieve all the builds. I I have been searching Google and found one that says to add fetch_all_builds = True, but it is still only 100.
Does anyone know how to request all builds from the job via an API call?
Thank you
/job/ /api/json?tree=allBuilds[*]&depth=2
This It is the API call URL.
I am building a python script to extract the construction history data for the Jenkins job. I have successfully used the Requests library to retrieve the json output, input the data frame and Report.
I noticed that it just pulled the last 100 versions, which looks like the default version. I am testing a basic curl call, which can retrieve the last 100 very well, See how I retrieve all builds. I have been searching Google and found one that says to add fetch_all_builds=True, but it is still only 100.
Does anyone know how to request all builds from the job via an API call?
Thank you
Adding tree = allBuild will provide you with the content you need.
p>
/job/ /api/json?tree=allBuilds[*]&depth=2
This is the API call URL.