title: how to synchronize jenkins' builds?
body: <p>my build consists of many stages. one of them is to perform database tests on a real database. i'd like to configure:</p>
  
  <ul>
  <li>one build that will test all important (whatever it means) branches</li>
  <li>second parametrized build: 'test my branch'</li>
  </ul>
  
  <p>the problem is i have only 1 available database so the db test phase must be synchronized between builds. two processes can't use same database at same time or tests results will be wrong.</p>
  
  <p>i didn't find any option to synchronize stages. is there any plugin or configuration option i missed?</p>