Teamcity restore a deleted build configuration

12.9k views Asked by At

Is there a way in teamcity to restore a deleted build configuration. I found Restore just deleted project which is about restoring a deleted project but can't find any information about restoring a deleted build configuration. I am using Teamcity 8.0.6

3

There are 3 answers

5
Alina Mishina On

The previous versions of build configuration setting are stored in /config/projects/buildTypes folder in different *.xml.N files. To restore setting replace *.xml file with *.xml.N file. Also since TeamCity 9 it is possible to store all project setting in VCS.

2
Luke Puplett On

TeamCity 9, locate your data directory and you'll find a trash folder, like so:

D:\TeamCity\Data\config\_trash

Take a copy of the whole thing to some other folder, just in case.

Move the effected project folders from config\_trash to config\projects.

Remove the suffixed .projectNN from each project folder.

You may see critical errors in the main web portal while this is happening.

Restart TeamCity just for good measure.

Suffixes

0
Pavel Sher On

Another option, available since 9.0 is to place project settings in version control (Git, Mercurial, or Subversion and Perforce since 9.1), and then restore removed files using VCS commands.