Change build template in TeamCity

How to change the assembly configuration template for a project?

Earlier, my TeamCity project used a general assembly template that is used by 5 other projects. I created a new template by copying an existing template and making changes related to my project. Now I can’t find a way to use this template in the TeamCity project.

Is there an easier way besides creating a new assembly configuration and inheriting a newly created assembly template?

+7
source share
1 answer

The following is in the TeamCity document :

  • You can create new assembly configurations based on a template.
  • You can associate any number of existing assembly configurations with a template: there is an option “Associate with template” using the Actions button in the upper right corner of the screen.

So, Option 1 , you have to go through each assembly configuration, disconnect from the old template and connect to the new one.

Option 2 , which you might want to consider, is to modify an existing template with new settings instead of creating a copy. This can be convenient if you plan to use only one template.

Option 3 - use the TeamCity API , which allows you to read, disconnect and attach the assembly configuration from / to the template:

GET/DELETE/PUT http://teamcity:8111/httpAuth/app/rest/buildTypes/<buildTypeLocator>/template 
+11
source share

All Articles