Mapping External Links in Comments

Skip to end of metadata
Go to start of metadata
You are viewing documentation of TeamCity 4.x, which is not the most recent released version of TeamCity. Please refer to the listing to choose another version.
Search

Searching TeamCity 4.x Documentation

Table of Contents

TeamCity allows to map patterns in VCS change comments to arbitrary HTML pieces using regular expression search and replace patterns. One of the most common usages is to map an issue ID mentioning into a hyperlink to the issue page in the issue tracking system.

To configure mapping:

  1. Navigate to the file  TeamCity data directory/config/main-config.xml
  2. Locate section <comment-transformation>, or create one under the <server> tag, if it doesn't exist (you may refer to the main-config.dtd file for the XML structure definition)
  3. Specify the search and replace patterns. For example, you can use the following pattern for enabling JIRA integration:
Search & replace patterns have java.util.regex.Pattern syntax.

Labels:

admin admin Delete
map map Delete
external external Delete
link link Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.