TeamCity
 
You are viewing the documentation for an earlier version of TeamCity.

Configuring Build Steps

Last modified: 20 April 2023

When creating a build configuration it is important to configure the sequence of build steps to be executed. Each build step is represented by a Build Runner and provides integration with a specific build or test tool. You can add as many build steps to your build configuration as needed. For example, call a NAnt script before compiling VS solutions.

Build steps are invoked sequentially. If a build step fails the rest are not executed. A build step failure can be caused by:

  • A build process has returned exit code other than 0, and Fail build if condition "build process exit code is not zero" is enabled in the Configuring General Settings of build configuration. (This behaviour doesn't apply to NUnit, MSTest, FxCop, Duplicates (.NET) runners).

If you have enabled "Fail build if at least one test failed" condition in the Configuring General Settings of build configuration, TeamCity will continue executing build steps that go after test runner, but the build will be marked as failed.

In the end, the build gets merged status and the output goes into the same build log.

For the details on configuring individual build steps, refer to:

See also:

Concepts: Build Runner