Our Sonarqube instance has the 9.9 LTS installed.We are testing Sonar notifications for a specific project that has two branches analyzing (Master and a secondary one).
We have enabled ALL notifications as per screenshot below:
The problem is that we are not receiving notifications the main branch (master) when, for example,a new issues occur, while we receive them for the secondary branch at all intances.
For example, an analysis was performed on 11/21/23 when in New Code, 2 new maintainability issues were detected. However, no new notification was received. The detail of new issues detected by date, these appear as new on 11/20/23:
What could be the reason why the notifications did not get sent out or why did we not receive it? We do not understand why if the analysis indicates 2 new issues, the notification was not sent on 11/21/23.
Thanks for checking the logs. Going back to your OP,
Just to double-check, the main/master branch is the one you see by default when you open the project in SonarQube? I.e. SonarQube treats it (regardless of name) as the main branch?
It looks like the problem you’re describing could happen when an issue is copied from another branch or pull request.
Could you please look into the changelog of one of those issues that didn’t trigger a mail notification and copy the content here? You can find it in the issue details, by clicking on the date of the issue.
Indeed there is not much in the changelog so the theory I had before is not what happened here. I tried to look into it more but I don’t see another situation where this could occur.
However, there is one thing I’d like to clarify: we can see that the issue was created on the 20th, which means an analysis happened on that day. So notifications would be sent on the 20th, not the 21st as you said in your initial post.
This is pretty old by now, would you have a more recent case when it happened again?