teamcity-slack icon indicating copy to clipboard operation
teamcity-slack copied to clipboard

Alter message based on item in build chain

Open Yann4 opened this issue 6 years ago • 4 comments

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.

Yann4 avatar Feb 13 '19 10:02 Yann4

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

alexkvak avatar Feb 13 '19 10:02 alexkvak

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

Yann4 avatar Feb 13 '19 10:02 Yann4

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

alexkvak avatar Feb 13 '19 10:02 alexkvak

@Yann4 did you try the {reason} placeholder?

alexkvak avatar Feb 26 '19 22:02 alexkvak