You can set the number of concurrent builds of a project running per node or globally with the below plugin:
- https://wiki.jenkins-ci.org/display/JENKINS/Throttle+Concurrent+Builds+Plugin Cheers On Friday, 7 October 2016 22:31:54 UTC+2, Mark Sinclair wrote: > > > 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/daabcd88-dd9f-4557-93eb-011802702a73%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
