title: How to ensure team city build configurations for same project to run in a specific order?
body: <p>My setup: One project with two build configs ("ci" and "reset dbs")</p>
  
  <ul>
  <li><p>the "ci" is just a regular ci build of the project</p></li>
  <li><p>the "reset dbs" uses the same VCS but only triggers builds in the "common\database" folder (runs reset of the databases required for the tests)
  (trigger pattern: +:Common/Database/**)</p></li>
  </ul>
  
  <p>Now - I would that when I check stuff into the "database" folder - the "reset dbs" build is always run BEFORE the regular "ci" build.</p>
  
  <p>What I've done now is set the quiet period of the "ci" build to the same as the poll interval for the VCS - that SHOULD give me that the "reset dbs" always runs first right?</p>
  
  <p>Seems to be working so far (a couple of test commits) - but I want it to totally correct. </p>
  
  <p>Is there a better way to do this?</p>
  
  <p>I see one other way of doing it which would be to copy the "ci" config and have one called "ci after reset" that is triggered after the reset build. And then let the regular "ci" exclude the "database" folder. Feels like a hack. </p>
  
  <p>Thank you!</p>
  
  <p>Update: The whole idea is to not have to run the "reset dbs" on every commit, but just when needed - and in that case it has to run before the "ci" build. Thanks for the responses so far!</p>