This feature provides the ability to allows any logged in user to subscribe to the following email notifications:
- Changes in reviews issues assigned to me or created reported by me
- New alerts
- New violations introduced during the first differential period
- false positives
- New issues
for all projects or a specific list of projects.
During each Sonar analysis, the notifications are computed for each user who has subscribed to notifications. Then, in asynchronous way, emails on these notifications are sent to users.
To set the delay between processing of notification queue, set the sonar.notifications.delay property (in seconds) in SONAR_HOME/conf/sonar.properties. Note that the Sonar server has to be restarted for the new value to be taken into account.
Note that sometimes there could be some discrepancy between values displayed in the email and values displayed on the web interface. This happens if another analysis has been run between the sending of the email and you clicking on the link to the Violations drill-down in this email.
Each logged in user can subscribe to notifications by going subscribe to notifications, go to UserName > My profile and tick the events they you want to subscribe to.
In the below example below, the user will receive notifications for:
- New alerts on any projectsproject
- Changes in reviews issues assigned to her/him or created reported by her/him on the following projects: 'UT coverage with Sonar Runner reusing JUnit and JaCoCo reports' and 'Java sample project combining UT and IT coverage'New violations introduced during the first differential period "Simple Java Project" and "Simple Cobol Project"
- New issues on the following projects: 'UT coverage with Sonar Runner reusing JUnit and JaCoCo reports' and 'Java sample project combining UT and IT coverage'
For Sonar to be able to send notifications by email, go to Settings > Configuration > General Settings > Email and configure the email settings.
- "Simple Java Project" and "Simple Cobol Project"
See Notifications - Administration to administer this notification mechanism.