alexkvak / teamcity-slack

TeamCity Slack plugin
MIT License
124 stars 23 forks source link

Alter message based on item in build chain #57

Open Yann4 opened 5 years ago

Yann4 commented 5 years ago

Our configuration has us using the slack notifier on the build chain only to reduce the number of messages in slack. Being able to log out which build it was that failed from the chain in the message would be helpful.

To give the more specific example, we build release for Windows, PS4, XBox & Switch all on the same build chain, and if only Switch breaks, I'd like to add that to the message.

alexkvak commented 5 years ago

So you need to see the failed build reason, not the last build in chain?

Yann4 commented 5 years ago

Not particularly the reason (the reason being equivalent to what's in the dropdown on a build?), but which build(s) in the chain have failed.

image

alexkvak commented 5 years ago

So it makes sense, I'll investigate if it's possible to do

alexkvak commented 5 years ago

@Yann4 did you try the {reason} placeholder?