TeamCity-HipChat-Notifier icon indicating copy to clipboard operation
TeamCity-HipChat-Notifier copied to clipboard

Show validation error for notification message templates

Open naderghanbari opened this issue 9 years ago • 2 comments

On TeamCity 9.1.1, changing the notification values does not show any error so it's a bit confusing. It seems that a validation is happening in the backend but nothing is shown to the user.

naderghanbari avatar Nov 06 '15 08:11 naderghanbari

I'm not sure whether you refer to syntactic or semantic validation. Syntactic validation may be possible. I need to check what the underlying templating library supports. As for semantic validation (i.e. the use of a TeamCity variable), that would be practically impossible, as users of the plugin can define custom environment and other variables.

parautenbach avatar Dec 11 '16 17:12 parautenbach

As a workaround, you can enable debug logging.

Also, copying your template out and resetting the template would get things in a working state. You can then visually inspect the template, or you can use this online validator.

parautenbach avatar Dec 11 '16 17:12 parautenbach