Determine if given job is currently running using Hudson/Jenkins API

前端 未结 5 936
忘掉有多难
忘掉有多难 2020-12-29 05:24

Is there an API to determine whether a given job is currently running or not?

Ideally, I\'d also like to be able to determine its estimated % complete and get the de

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-29 06:14

    If you go to your job's page, and add "api" to the end of the URL, you'll get information on using the API.

    http://yourjenkins/job/job_name/api
    

    More information on using the Jenkins API:

    https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API
    

提交回复
热议问题