trying to read Jenkins job status from RestAPIs. Lastbuild giving latest info. In Grafana I am trying to compare LastBuild & LastBuild-1 status. Anyway to get the lastbuild-1 info?
http://127.0.0.1:8080/job/Job2/***lastBuild***/api/json --> giving LastBuild info http://127.0.0.1:8080/job/Job2/***lastBuild-1***/api/json --> anyway in this format?
I don't think you can do this with a single API call. So you need to do two API calls for this, one to get the last build number and then to get
lastBuild-1Following API cal will give you the last build number.