Hi. In order to manage the ever increasing job load, I am writing a plugin to automatically provision a new slave. I could create a new slave and add it to jenkins successfully making use of Swarm plugin. Now, the problem is I am not sure on how I could intercept Jenkins job load and when its overloaded how my plugin would be called. I have gone through the extension points wiki of jenkins, but could not find anything useful(or I missed something?)
Really appreciate any helps or suggestions! Thanks,