Determine if given job is currently running using Hudson/Jenkins API
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 details of the SVN revision number and commit comment too! EDIT: I found the answer. http://host/job/project/lastBuild/api/ has almost all of what I need in it somewhere! If you kick off a manual build, it won't tell you the SCM changesets, but that makes sense. It does still tell you the latest SCM revision though, so that's good. All in all, good enough for my purposes right now. As gareth_bowles and Sagar said, using the Jenkins