Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to keep track of pending builds in Jenkins?

Tags:

java

jenkins

api

I need to find what build id's were assigned to a pending build in Jenkins.

I saw that Build History keeps track of them and displays them to the user but I didn't find them displayed in an api form (xml in my case) at this link

http://localhost:8080/job/JobName/api/xml

How can I get this information from Jenkins ?

like image 349
John Smith Avatar asked Oct 20 '22 01:10

John Smith


1 Answers

Use the queue API:

JENKINS_URL/queue/api/xml
like image 51
gareth_bowles Avatar answered Oct 21 '22 22:10

gareth_bowles