title: New Agent per build with Scripted Pipeline
body: <p>I built a scripted pipeline that requires docker to spin up to run the new code being deployed. </p>
  
  <p>Since each docker instance runs on port 8081, only one build can run per agent.</p>
  
  <p>Each build agent has 4 available executors, so I need to manually set the executors to 1 each time an agent spins up.</p>
  
  <p>Is there any way I can still continue using a scripted pipeline and make sure that only one job is executed per agent?</p>