Jenkins命令获取队列中的构建数量 [英] Jenkins command to get number of builds in queue
本文介绍了Jenkins命令获取队列中的构建数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在Jenkins构建队列中获取构建数量.
I am trying to get the number of builds in the Jenkins Build Queue.
我可以知道Jenkins命令来获取在队列中运行的内部版本数吗?
May I know the Jenkins command to get the number of builds running in the queue ?
推荐答案
See Jenkins' Remote access API.
通过以下方式访问API描述:
Access the API description with:
http://<Your Jenkins>/api/
以及带有以下内容的实际数据:
and the actual data with:
http://<Your Jenkins>/api/xml
构建队列具有自己的独立API:
The Build queue has its own separate API:
http://<Your Jenkins>/queue/api/
及其数据:
http://<Your Jenkins>/queue/api/xml
这篇关于Jenkins命令获取队列中的构建数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文