title: Script to disable build steps in TeamCity or start run at a specific step
body: <p>I want to disable several build steps in a TeamCity configuration.
  For example:</p>
  
  <blockquote>
    <ul>
    <li>I have a deploy configuration called <i>DeploySoftware</i>.<br/></li>
    <li>It has 10 build steps (Run ><i>DB scripts</i>, <i>Run environment scripts</i>, <i>Deploy Web Service</i>, <i>Deploy Windows Service</i>, <i>Deploy This</i>, <i>Deploy That</i>, etc).<br/></li>
    <li>I run it once and it fails on <i>Deploy This</i>.<br/></li>
    <li>I want to run it again starting with <i>Deploy This</i>, <strong>OR</strong> disable all the previous steps to that one by using a script.<br/></li>
    </ul>
  </blockquote>
  
  <p>One config I have has 30 build steps, so if it fails at Step 28 (and I know that another run will most likely work) I want to run it again starting with Step 28.  Otherwise it's 45 minutes of running steps that have already successfully complete, before I get to the step that needs to be run.</p>
  
  <p>I don't need the script to run the build (although that'd be nice), or change the config back once it's run (I expect that would be a simple tweak to the disable script).</p>
  
  <p>The script could be PowerShell, C#, VB.NET, VBA, Ruby - pretty much anything that I can quickly amend and run.</p>