TeamCity 2020.2 Help

Build Step Conditions

When configuring a build step, you can choose a general execution policy and, since TeamCity 2020.1, add a parameter-based execution condition.

Execution conditions make builds more flexible and address many common use cases, such as:

  • running the step only in the default branch

  • running the step only in the release branch

  • skipping the step in personal builds

You can quickly select any of the available common options in the build step Add condition menu:

Build step execution condition

Alternatively, select the Other condition option to add the parameter-based execution condition, which is a logical condition that takes on input any build parameter provided by the TeamCity server or agent.

If you declare multiple execution conditions, the build step will be executed only if all of them are satisfied in the current build run.

Last modified: 17 July 2020