TeamCity 2019.1 Help

Deployment Build Configuration

TeamCity provides the Deployment type of build configuration. Build configurations which perform deploying to some environment can be marked with this type: these are usually build configurations which have snapshot or artifact dependencies on the builds, whose results they deploy.

You can create a build configuration and use the General Settings tab to set its type to Deployment.

Once a configuration is marked as Deployment, TeamCity changes behavior in the following way:

  • The Run button caption for this configuration changes to Deploy.

  • If there is a build used as a dependency in a Deployment configuration, then, after the build is run, its build results page will display the Deployments section allowing you to quickly deploy the build.

    Deployments.png

  • The Change details page (the page where you can see which configurations are affected by the change, and which builds have been executed with this change) has the Deployments tab that shows builds in Deployment configurations where this change was deployed for the first time.

    ChangeDetails.png

  • For Deployment configurations, TeamCity always shows the latest started build regardless of the changes it contains; unlike regular build configurations, for which the build with the latest changes is displayed.

  • When setting the build configuration type to "Deployment", several settings are automatically changed to reflect the best practices: "Limit the number of simultaneously running builds" is set to "1" and "allow triggering personal builds" option is turned off.