Jenkins command to get number of builds in queue

前端 未结 5 975
傲寒
傲寒 2021-01-04 00:54

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 ?

5条回答
  •  执笔经年
    2021-01-04 01:34

    See Jenkins' Remote access API.

    Access the API description with:

      http:///api/
    

    and the actual data with:

      http:///api/xml
    

    The Build queue has its own separate API:

      http:///queue/api/
    

    with its data:

      http:///queue/api/xml
    

提交回复
热议问题