Hi, Generally, with any of the Java IDE, you can easily browse the Jenkins API. Start with the Jenkins class.
In your case: Jenkins.getActiveInstance().getMachines() => returns Machine[] Then Machine.getExecutors() => returns Executor[] Then Executor.isActive() HTH Cheers 2015-10-27 7:03 GMT+01:00 Vinodhini Vijay <[email protected]>: > > > Hello All, > > Is there any way to find the number of free executors during a build? > > While a build starts, the run method of the build object is called. Is > there a way to find the number of free executors (when the control is > inside the run method) currently available in the master or any specifc > Slave node? > > Thank you! > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/7f8eb244-8b07-4fcc-9480-a14873c6c5ee%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/7f8eb244-8b07-4fcc-9480-a14873c6c5ee%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANWgJS7N3m9wKUYYrf2bvO%3D-QMErBOmSJR_ntH%3DPum4U%3D5ti8w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
