I have several projects, each with many associated jobs. I need to control the number of jobs that run in parallel for each project. Currently, I'm using slaves to accomplish this. Each slave runs jobs for a specific project and I set the number of executors manually for each slave. Note - each job kicks off a variable number of tests managed outside of Jenkins.
Now I need to change the number of jobs that run in parallel in a more automated way. The easy thing would be to write a groovy script that changed the # of executors, but unfortunately it appears that method is private for slaves. My jobs are freestyle and use the build periodically build trigger. I want to increase the number of executors, but not use all the executors all the time. I was thinking of using ScriptTrigger plugin to evaluate a script and decide to launch, but I want the job to stay in the queue (at the head) if the script says it needs to wait. It appears these triggers will skip the job. Looking for ideas - thanks! -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/33adaa99-cb3e-4ff4-9ad3-dd145a62bbc9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
