Closed TomGudman closed 7 years ago
Build success notifications are only sent when the build result is success and the previous build result was also success. If the previous build result was something else than success, the notification type will be "back to normal" instead.
What about the first build? It did not send any success notification for the first time we built it (e.g: Job #1 is successful)
Since https://github.com/jenkinsci/hipchat-plugin/blob/master/src/main/java/jenkins/plugins/hipchat/model/NotificationType.java#L136 doesn't check if previousResult was null, I guess it would be considered back to normal. That looks like a bug.
Ok cool. We are happy to test when you have the time to release a new version
Thank you for the explanation about 'Back to normal', we never used it and never understood its purpose and never realised its consequence until now. I will have to update all our jobs to support that.
FYI, since I have 'back to normal', the first build now sends a notification with a message 'Back to normal'. As you said it should technically be a 'build success' message instead.
Hi,
Context
Description
Hipchat messages are not sent (or plugin is not executed at all...) Statistically, it seems 'build failed" notifications go through 90% of the time while 'build success' notifications only reach hipchat 5% of the time. It is really an odd behaviour; it is random. It seems to only affect new projects but I am not 100% sure about that either.
Setup
Consequences
Config.xml
Once the completeJobMessage parameter is removed the behaviour remains the same except that sometimes (2 out of 3 tests) when I changed the hipchat config it seems that 'build successful' notification went through. Could be just luck but it seemed related. Spent 2h+ trying to understand the issue; it is hard to objective anymore.
Logs
Possible cause
References