How To: Skip steps in your pipeline using Triggers


You have certain steps you want to skip over in certain circumstances. You are using a single pipeline for multiple triggers, but need certain tasks split.


  1. Set a pipeline variable with a default value. For example, SkipTest set to false
  2. Select the Trigger (or create a new one) that you will use.
  3. Under “Advanced Options” locate Variables.
  4. Set a Variable with an appropriate name and value. For example, SkipTest set to true
  5. Add a condition to your step. In this case, we will only run this step if the variable SkipTest is true.
      skipdeploy: '${{SkipTest}} == "true"'

Notes Other options for skipping steps are available.

API call for Pipelines

CLI call for Pipelines

More details on Conditionals