How to get total number of concurrent builds running for a job on Jenkins?

8 views
Skip to first unread message

praveen

unread,
Aug 26, 2016, 6:24:55 PM8/26/16
to Jenkins Users
 

I would like to monitor how many concurrent builds running for a job on Jenkins using groovy script console.


Using this I'm able to get the all running builds status, But I need to get the count of concurrent builds are running for a job. Can someone help me on this?


import hudson.model.* hudson.model.Hudson.instance.items .findAll { job -> job.isBuilding() } .each { job -> println "Job ${job.name} is building" }
Reply all
Reply to author
Forward
0 new messages