Jenkins command to get number of builds in queue

前端 未结 5 1104
傲寒
傲寒 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:54

    Try Jenkins API in Python.

    get_jobs()
      Get list of jobs running.
      Each job is a dictionary with ‘name’, ‘url’, and ‘color’ keys.
    Returns:    list of jobs, [ { str: str} ]
    

提交回复
热议问题