Slack Notifier : how to send via Service Messages?
This page about TeamCity Notifications says “Select the message format. Slack Notifier does not currently support custom notification templates. You can select the verbose format to choose what information to display in notifications, or utilize Service Messages to send completely custom strings.”
In our Team City, there is only a dropdown for message format “Simple” or “Verbose”. I don't see anything about Service Messages.
Anyone know how to do it with Service Messages?
Please sign in to leave a comment.
Please find the information on sending a custom Slack message with a TeamCity Service Message in the documentation here: https://www.jetbrains.com/help/teamcity/service-messages.html#Sending+Custom+Slack+Messages
Thanks! That worked great.
Also - do you know if there is any way to attach an artifact file to a Slack Message using Services Messages?
I am including a URL to an artifact, but the notifications log says “Found external domains that are not allowed by configuration: [packagingErrors.txt]”.
The url that I am actually including looks something like this when I print it out in the log:
https://<our server>//repository/download/<our build configuration>/2506:id/packagingErrors.txt
Why does it think the artifact is in an external domain?
I think we're discussing the same question in https://teamcity-support.jetbrains.com/hc/en-us/community/posts/20330773015698-Anyone-know-how-to-attach-an-artifact-text-file-to-a-Slack-service-message-notification-Or-at-least-a-URL-to-the-artifact.
Could you let me know if you were able to achieve the result using any of the provided methods?
Best regards,
Anton