I am trying to get the number of builds in the Jenkins Build Queue.
May I know the Jenkins command to get the number of builds running in the queue ?
The UI is limited to 30 builds.
It uses 4 Build Executors and puts 1 build into the queue.
From the CI/CD drop-down list, select Jenkins > Jobs. A dashboard show Jenkins job data. For details, see Jenkins > Jobs.
A queue is a temporary waiting line for jobs before execution. The jobs will be waiting in the queue until they are assigned to free executors by the master Jenkins node.
See Jenkins' Remote access API.
Access the API description with:
http://<Your Jenkins>/api/
and the actual data with:
http://<Your Jenkins>/api/xml
The Build queue has its own separate API:
http://<Your Jenkins>/queue/api/
with its data:
http://<Your Jenkins>/queue/api/xml
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With