Jenkins API to get queue size on job

506 Views Asked by At

I have a jenkins pipeline job which doesn't support concurrent build (as per requirement). so whenever multiple jobs are submitted, all jobs get queued. i want to know does jenkins provide any api which can give me number of jobs in queue for that jenkins job.

1

There are 1 best solutions below

1
ycr On

Yes you can access the queue API at http://<JENKINS_URL>/queue/api/json