Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to revert changes to a build configuration in TeamCity

I have done a number of changes to a build configuration in TeamCity 8. I know I can see an audit trail of the changes that I have done to the build configuration and I can check the details of each individual change, but I wonder if I can select one of those previous versions of the build configuration and restore it; there doesn't seem to be any obvious option in TeamCity for this.

For the avoidance of doubt, I'm not after reverting changes in the source code, but in the build configuration of TeamCity. I changed a few parameters, build steps, triggers, etc., and I want to revert those changes.

like image 909
quiram Avatar asked Aug 01 '14 16:08

quiram


1 Answers

You are right ,there is no obvious option in Teamcity to rollback to a previous version.

However, all teamcity build configurations are maintained in a xml file on the local disk drive in the Local Build Server. The files are created in a rolling format (the latest config is called config.xml, the one previous to it is config-1..xml). If you can figure out from the audit page on which exact xml you want to rollback to, you can copy the backed up config.xml to the recent one, or you can make the changes manually.

I would recommend playing with this on a test target first and then doing it on the original target.

like image 151
Biswajit_86 Avatar answered Sep 30 '22 16:09

Biswajit_86