title: Teamcity - do not run dependent configuration if none exists
body: <p>How can I restrict automatically running dependent build configurations?</p>
  
  <p>I have a pipeline: </p>
  
  <ul>
  <li>Build</li>
  <li>Stage</li>
  <li>Release</li>
  </ul>
  
  <p>Those are different configurations chained using snapshot dependencies. However, by default when a Teamcity configuration is run, it checks all the snapshot dependencies and then re-builds those which are not suitable. </p>
  
  <p>Instead, for example, I want the <code>Stage</code> configuration to <em>fail</em> when no suitable <code>Build</code> snapshot dependency is found. (i.e. it should be impossible to run the <code>Stage</code> build without there first being a <code>Build</code> ready).</p>
  
  <p>All I can find in Teamcity is configuration about how to handle situations where the dependency build <em>fails</em>, which is not what I need.</p>
  
  <p>Thanks</p>