Build configuration templates in TeamCity

In this topic, you will learn how to create Build configuration templates. Main benefit of using templates is that you can create new build configurations very quickly.

You can create Build configuration templates in 2 ways.

  1. Manually
  2. Extracting template from existing build configuration

To add a template manually, you have to go to the project settings page and then click on create a new build configuration template as shown in below image.

Create build template manually in TeamCity

Create build template manually in TeamCity

Below image shows how to create a new Build configuration template  by extracting  it from existing build configuration.

Extract template from build in TeamCity

Extract template from build in TeamCity

New template name in TeamCity

New template name in TeamCity

Once new template is created, it is displayed under project from where it is extracted as shown in below image. We can copy, move or delete the template from here.

template actions in TeamCityDeleting a template is not allowed if that template is referenced by any build configuration. To delete such templates, you need to detach it from any builds that are using it as shown in below image.

Detach template from build in TeamCity

You may also like...