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

Triggering a Custom Build

Last modified: 20 April 2023

A build configuration usually has Configuring Build Triggers configured in it which automatically start new build each time the conditions are met, like scheduled time, or detection of VCS changes are detected, etc. However TeamCity allows to trigger a build manually whenever you need, and customize this build by adding properties, using specific changes, running the build on specific agent, etc.

There are several ways of launching a custom build in TeamCity:

  • Click the ellipsis on the Run button, and specify the options in the Run Custom Build dialog described runCustomBuild.

  • To run a custom build with specific changes, open build results page, go to the Changes tab, expand the required change and click the Run build with this change and proceed with the runCustomBuild in the Run Custom Build dialog.

  • Use Accessing Server by HTTP to TeamCity to trigger a build

To create history builds, TeamCity always uses the VCS roots and settings that are now actual for the particular build configuration. If you delete a VCS root from the build configuration, you can no longer trigger history builds with changes which the root contained.