TeamCity 9.0 Help

Configuring Finish Build Trigger

The Finish build trigger triggers a build of the current build configuration when a build of the selected build configuration is finished. If the Trigger after successful build only checkbox is enabled, a build is triggered only after a successful build of the selected configuration.

To monitor builds in other build configurations and trigger a build if these builds change, please see this option of the Schedule build trigger.

Branch Filter

If the build configuration selected in the Finish Build Trigger uses Feature branches, you can enable the branch filter to limit the branches where finished builds will trigger new builds of the current configuration.

The Branch filter setting limits a set of logical branch names according to specified rules. Branch filter has the following format:

+:logical branch name -:logical branch name

Where logical branch name is a part of branch name matched by branch specification (i.e. displayed for a build in TeamCity UI), see Working With Feature Branches. Wildcard character ('*') can also be used.

Examples: Only default branch is accepted:

+:<default>

All branches except default are accepted:

+:* -:<default>

Only branches with with feature- prefix are accepted:

+:feature-*

By default, the branch filter in the Finish Build Trigger is set to accept only the default branch (+:<default>), which is also the equivalent of the empty branch filter.

Last modified: 20 April 2023