tcSlackBuildNotifier icon indicating copy to clipboard operation
tcSlackBuildNotifier copied to clipboard

Getting duplicate success/failure messages

Open jrmuir opened this issue 9 years ago • 10 comments

Using TC 10.0.1 and the latest master build of tcSlackBuildNotifier we're getting duplicate notifications. If I check off include build time one message will include it, but not both.

Misconfig on my part? Intended?

Example output where "Robot Overlord" is the botname:

Robot Overlord BOT [3:28 PM]  
Running - Wordpress :: Wordpress Stack :: wordpress-stack #1.0.12
wordpress-stack
----------------
Commits
----------------
3dcaa9c3a5 :: jrmuir :: I don't need that
Changes By
----------------
jrmuir
[3:28]  
Succeeded - Wordpress :: Wordpress Stack :: wordpress-stack #1.0.12
wordpress-stack
----------------
Commits
----------------
3dcaa9c3a5 :: jrmuir :: I don't need that
Changes By
----------------
jrmuir
[3:28]  
Succeeded - Wordpress :: Wordpress Stack :: wordpress-stack #1.0.12
wordpress-stack
----------------
Commits
----------------
3dcaa9c3a5 :: jrmuir :: I don't need that
Changes By
----------------
jrmuir

jrmuir avatar Oct 27 '16 21:10 jrmuir

I'm on TeamCity 10.0.2 with v1.4.6 of the plugin and experiencing the same issue. We're receiving 1 build start notficiation, but then 2 success/failure notifications.

jamesmbourne avatar Nov 05 '16 12:11 jamesmbourne

@jrmuir and @jamesmbourne, could it be that you have the Build Almost Completed flag active in the project settings? I experienced the same, but after de-activating this event I'm only receiving one notification. Could it be that the notification's title is misleading ("Success" instead of "Almost completed")?

timotyweis avatar Nov 08 '16 14:11 timotyweis

@timotyweis I've just changed that configuration for my projects and this has resolved the issue for me. I now only recieve one notification per build completion. Thanks! 👍

jamesmbourne avatar Nov 08 '16 14:11 jamesmbourne

Thanks @timotyweis ! Much appreciated.

marvin-w avatar Nov 08 '16 17:11 marvin-w

That's exactly it. The message isn't indicating almost success, just success.

jrmuir avatar Nov 08 '16 18:11 jrmuir

Just same! Turning off "Almost complete" helped.

holinov avatar Dec 26 '16 18:12 holinov

Same: disabling Build Almost Completed made the duplicate go away.

cottsak avatar Feb 06 '18 08:02 cottsak

Yeah, that almost complete had never been useful to anyone I suspect. Sorry

PeteGoo avatar Feb 07 '18 18:02 PeteGoo

@PeteGoo Don't be sorry. I've seen heaps of builds that take >10 mins. Some even hours.

These days however, if you need a "almost complete" notification, then you probably should be solving a different problem.

cottsak avatar Feb 08 '18 01:02 cottsak

Hi guys i am on teamcity 2017 where is this flag? Cant find it....

xalikoutis avatar Mar 08 '18 22:03 xalikoutis