Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Teamcity restore a deleted build configuration

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

like image 225
Mohammad Nadeem Avatar asked Dec 03 '14 11:12

Mohammad Nadeem


2 Answers

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

like image 110
Luke Puplett Avatar answered Sep 21 '22 13:09

Luke Puplett


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.

like image 38
Alina Mishina Avatar answered Sep 22 '22 13:09

Alina Mishina