title: Running jobs sequentially in Jenkins
body: <p>Maybe someone could help me. <strong>I’d like to run one build at a time in Jenkins for some projects even if there are more builds in the queue.</strong> I know that I could limit number of executors but it would affect all projects and this solution doesn’t suit me. I try to use Throttle Concurrent Builds plugin as it’s recommended in this situation but it doesn’t work and I have no idea why.</p>
  
  <p>Before I installed this plugin all builds run correctly. When I have it installed (just installed, I don’t make any changes in configuration) builds go to the queue and never starts (I use 2 executors, both are in idle status all the time). I verified that everything is OK with my node, it’s online, number of executors equals to 2, and it’s set to be utilize as much as possible. There’s no problem with the free space. Increasing number of executors also doesn’t help.</p>
  
  <p>Then I tried to configure Throttle Concurrent Builds (just as an experiment). I went to ‘Configure System’ and add ‘Multi-Project Throttle Category’ with ‘Maximum Total Concurrent Builds’ and ‘Maximum Concurrent Builds Per Node’ set to 1. I went to one of my projects and select ‘Throttle Concurrent Builds’ option. Next, I chose ‘Throttle this project as part of one or more categories’ and checked the check box of the 'Multi-Project Throttle Category' I had just created. As a result when I clicked ‘Build now’ for my project nothing happened. It even didn’t go to the build queue.</p>
  
  <p>Disabling Throttle Concurrent Builds plugin made my projects building again.</p>
  
  <p>I have 2 questions:</p>
  
  <ol>
  <li><p>Why I couldn’t build any project when I have Throttle Concurrent Builds plugin enabled (builds go to the queue and never start or don’t appear at all)?</p></li>
  <li><p>Is there any other way to force some jobs running sequentially (also other than changing number of executors)? I have some projects which execute Windows batch command. They must always run separately no matter how many projects I will schedule to build (number of projects and their combination is variable).</p></li>
  </ol>
  
  <p>Thank you in advance,
  Anna</p>
  
  <p>PS. I’ve just started my adventure with Jenkins, so please be understanding:)</p>