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"}

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bea9d271-e78d-4aae-a026-fb734d67109d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to