Maria Ines Parnisari
Maria Ines Parnisari

Reputation: 17506

TeamCity: search over configuration parameters

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.

Upvotes: 5

Views: 3135

Answers (2)

Damo
Damo

Reputation: 6453

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 .

Upvotes: 0

BrokenGlass
BrokenGlass

Reputation: 161002

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).

Upvotes: 5

Related Questions