Creating and Editing Build Configurations
TeamCity provides several ways to create a new build configuration for a project. You can:
Create a new build configuration manually
Create a new build configuration from URL (since TeamCity 9.1)
Create a build configuration template, and then create a build configuration based on the template.
When build configurations are created, you can:
Creating New Build Configuration
On the Administration > Projects page, select the desired project in the list. (Alternatively, open the project using the Projects popup, and click the Edit Project Settings link on the right). The Project Settings page opens.
On the Project Settings page, Build Configurations section, click Create build configuration.
Specify the name, id and (optionally) description for the build configuration, click Create.
Proceed with creating other settings:
On the Build Steps page, configure build steps either manually by selecting a desired build runner from the drop-down list, or using the automatic detection. More information. Click Save. You can add as many build steps as you need within one build configuration. Note, that they will be executed sequentially. In the end, the build gets the merged status and the output goes into the same build log. If some step fails, the rest is executed or not depending on their step execution policy.
Additionally, configure build triggering options, dependencies, properties and variables and agent requirements.
Creating New Build Configuration from URL
Since TeamCity 9.1, you can create a build configuration using a VCS URL:
On the Administration > Projects page, select the desired project in the list. (Alternatively, open the project using the Projects popup, and click the Edit Project Settings link on the right). The Project Settings page opens.
On the Project Settings page, Build Configurations section, click Create build configuration from URL.
Specify a VCS repository URL and, if authentication is required, VCS credentials. click Create.
TeamCity will suggest the build configuration name and will configure the rest of settings for you.
it will determine the type of the VCS repository and create a VCS root
TeamCity will attempt to auto-detect build steps: Ant, NAnt, Gradle, Maven, MSBuild, Visual Studio solution files, PowerShell, Xcode project files, Rake, and IntelliJ IDEA projects. If none found, you will have to configure build steps manually.
Next, TeamCity UI will display suggestion icons with prompts to create build triggers, failure conditions and build features. Depending on the build configuration settings, it may suggest some additional configuration options.
After the build configuration is created, you can run a build and/or tweak the settings.
Creating Build Configuration Template
Creating a new build configuration template is similar to creating a new configuration:
On the Administration > Projects page, select the desired project in the list. (Alternatively, open the project using the Projects popup, and click the Edit Project Settings link on the right). The Project Settings page opens.
On the Project Settings page, Build Configuration Templates section, click the Create template button and proceed with configuring general settings, VCS settings and build steps.
Alternatively, you can create a build configuration template from an existing build configuration:
Open the existing build configuration settings page, click Actions at the top right corner of the screen, and select the Extract Template option.
Specify the settings required and click Create.
Creating Build Configuration From Template
To create a build configuration based on a template:
On the Administration > Projects page, select the desired project in the list. (Alternatively, open the project using the Projects popup, and click the Edit Project Settings link on the right). The Project Settings page opens.
On the Project Settings page, Build Configuration Templates section, locate the desired template and click its name or use Edit.
Click Actions at the top right corner of the screen, and select Create Build Configuration.
Specify the required settings for the new configuration.
Alternatively, you can create a build configuration based on a template as follows:
On the Administration > Projects page, select the desired project in the list. (Alternatively, open the project using the Projects popup, and click the Edit Project Settings link on the right). The Project Settings page opens.
On the Project Settings page, Build Configurations section, click Create build configuration.
On the configuration settings page, use the he Based on template drop-down and selecting a template for your build configuration .
Ordering Build Configurations
You can view all build configurations of a project on the Project Overview page listed in alphabetical order by default. Starting from TeamCity 9.1, administrators can customize the default order.
Configuring Settings
Configuring settings of a build configuration is described on the following pages:
|Configuring Build Parameters | Configuring VCS Settings