If you're using freestyle or multi-configuration jobs, you can control concurrency at the job definition with the Throttle Concurrent Builds plugin <https://wiki.jenkins-ci.org/display/JENKINS/Throttle+Concurrent+Builds+Plugin> (and a stackoverflow article <http://stackoverflow.com/questions/20079051/how-to-put-jobs-in-a-category-for-the-throttle-concurrent-builds-plugin-for-jenk> that further describes it).
For all job types, you could control concurrency at the job definition by requiring those jobs only run on an agent with a specific label (for example "chrome-test"), then create an agent with that label on each of the target machines which has only a single executor. With only one executor on that assigned agent, it will run one job at a time. You could control concurrency at the agent by limiting the number of executors on the agent. If there is only one executor on the agent, then it will only run one job. If you're using scripted pipeline, you can control concurrency in your Jenkinsfile by limiting the number of tasks you run in parallel. I assume the same is true for declarative pipeline. Mark Waite On Sat, Apr 29, 2017 at 7:32 AM Johnny Kigel <guyd...@gmail.com> wrote: > Hi, > > I'm testing my browser plugin using Jenkins. > I have 2 virtual machines, each for browser (Chrome for Windows, Chrome > for Mac). > > I test my plugin against the 3 most recent version of chrome. > So my matrix looks like the following: > *Chrome for Mac:* ver 58, ver 57, ver 56 > *Chrome for Windows:* ver 58, ver 57, ver 56 > > My problem is that when I trigger my job, *all 3 versions of Mac begin to > run parallel *and *all 3 versions of Windows begin to run parallel.* > > *I need my execution sequence to look like this:* > 1. Chrome Mac ver 56 - Chrome Windows ver 56 > 2. Chrome Mac ver 57 - Chrome Windows ver 57 > 3. Chrome Mac ver 58 - Chrome Windows ver 58 > > So that at any given moment *single version of chrome for Mac* will be > executed and a *single version of chrome for Windows* will be executed. > > > I would glad for help :) > > 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 jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/55bb3665-8dff-49df-bba6-06eeddc6015d%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/55bb3665-8dff-49df-bba6-06eeddc6015d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAO49JtHHWuTeVwASYYswLAHSXR7oyWbEZXaTqfA5aW_cDvOr6A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.