Unable to render embedded object: File (TeamCity48.png) not found.

TeamCity 9.x Documentation

Documentation for Previous Versions

Icon

You are viewing the documentation of TeamCity 9.x, which is not the most recently released version of TeamCity.
View this page in the latest documentation or refer to the listing to choose the documentation corresponding to your TeamCity version.

 

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Option

Description

Anchor
Template
Template
Template (optional):

File content replacer Content Replacer provides a template for every attribute to be replaced. Clicking the Load Template... button displays the combobox with templates containing value presets for replacement. The templates can be filtered by language (e.g. C#), file (e.g. AssemblyInfo) or attribute (e.g. AssemblyVersion) by typing in the combobox. When a template is selected, the settings are automatically filled with predefined values. See the section below for template details.

Anchor
Wildcards
Wildcards
Look inSpecify the newline- or comma-separated list of Process files:

Click Edit file list and specify paths to files where the values to be replaced will be searched. Provide a newline- or comma-separated set of rules in the form of +|-:[path relative to the checkout directory] .
Ant-like wildcards are supported, e.g. dir/**/*.cs.
If a pre-defined template is selected, the files associated with that template will be used.

Anchor
Fileencoding
Fileencoding
File encoding:

By default, TeamCity will auto-detect the file encoding. To specify the encoding explicitly, select it from the drop-down. When specifying a custom encoding, make sure it is present on the server and the agentssure it is supported by the agent.
If a pre-defined template is selected, the file encoding associated with that template will be used.

Anchor
Pattern
Pattern
Find what:

Specify a value to be replaced. Regular expressions are accepted in your search criteria. The (?m) multiline flag pattern to search for, in the regular expression format. MULTILINE mode is on by default.
If a pre-defined template is selected, the pattern associated with that template will be used.

Anchor
matchCase
matchCase
Match case:

By default, the comparison is case-sensitive. Uncheck for case-insensitive languages.
If a pre-defined template is selected, the comparison associated with that template will be used.

Anchor
Replacement
Replacement
Replace with:

Type the values text to be used to replace for replacing the characters in the Find what box. To delete the characters in the Find what box from your file, leave this box blank.

Info

 

  • Reference capturing groups when necessary, e.g. $1replacement$2.
  • Use a backslash to escape each digit immediately following a numbered capturing group (e.g. $1\1.0.0.0$2 vs. $11.0.0.0$2).
  • Use a backslash to escape special characters (e.g. \$).

$N sequence references N-th capturing group. All backslashes (\) and dollar signs ($) without a special meaning should be quoted (as \\ and \$, respectively).

 

Templates

Anchor
Pre-defined templates
Pre-defined templates

...