Editing "substitution patterns" in notification templates

I understand how to edit notification templates no problem, but what if I want to edit a substitution pattern like {CHANGES_WITH_FILES}, for example, in jabber-config.xml to make it more concise?

I tried searching all relevant directories but couldn't find where these patterns are defined. Is it possible to edit these?

Thanks in advance for any help.

0
3 comments

For this you will need to write your own plugin. For more details about TeamCity plugins take a look here: http://www.jetbrains.net/confluence/display/TCD4/Extending+TeamCity
For this task you will need to register your own pattern and processor of this pattern in the jetbrains.buildServer.notification.TemplateMessageBuilder

0
Avatar
Permanently deleted user

Thanks Pavel. Is this possible even in 3.1.2?

0

Yes, you can write such plugin for 3.1.2 too, however link to documentation I've sent you is for 4.0. In 4.0 we've made several improvements related to plugins so I would suggest to upgrade to latest version.

0

Please sign in to leave a comment.