TeamCity: search over configuration parameters

2.7k Views Asked by At

Is it possible to perform a search over all the configuration parameters in a server?

The reason I'm asking is because I have a path that points to a specific C# solution, and I need to update it, but I don't want to have to look in every build configuration.

2

There are 2 best solutions below

3
On BEST ANSWER

Basically under the hood all your TeamCity build configurations are just XML files in the BuildServer\config\projects\ folder and sub folders. You can just do a grep over those XML files to find your configuration parameter.

I have done mass find and replace operations on those XML files before without problems (of course got to make sure that what you are replacing is not used anywhere else in the XML, and always keep a backup).

0
On

On our on prem TeamCity 2018.1.3 install the buildSettings are stored in /data/teamcity-data/system/artifacts

The following grep term will find all the things you are looking for

grep -rPe "searchRegexHere" --include buildSettings.xml .