How to send notifications to Slack with SonarQube ? What are the best plugins ? That is what we are going to discover in this post.
Unless you live on another developer planet, SonarQube is an code quality platform, sold by the SonarSource company. The platform is delivering a quite huge set of features and even if competitors (read also this) exist on the market, IMHO they are the leaders.
SonarQube comes with a large set of plugins. Official registered one, mostly maintained by SonarSourcem are available in the Marketplace and some confidential ones listed on a wiki page of SonarSource or directly found on Github.
In the past, the OSS community seem to be wider and ready to produce plugins. However the frequent API changes and their commercial behavior have slightly decreased the interest, IMHO.
Why Slack in this affair ?
Slack is an instant messaging platform offering workgroups and additional features over IRC (but still IRC is better 🙂 Since a lot of coding teams have adopted Slack, it’s natural to receive the notifications in your coding channel. However no official plugin still exists.
Slack plugins for SonarQube
- Plugin from @kogitant : https://github.com/kogitant/sonar-slack-notifier-plugin
- Plugin from @tomhoag : https://github.com/tomhoag/sonar-slack-plugin
- Plugin from @keiki : https://bitbucket.org/keiki/slack-sonar-plugin
I have retained two plugins from @kogitant and @keiki. The plugin from @tomhoag was cool but old and unmaintained.
The keiki plugin seems to most recent ones but seems unfinished. The master branch has no code and the kotlin branch less features than @kogitant.
Since the @kogitant version has worked but is an uncertain state (unmaintained), I have resumed the coding and have integrated on my own fork, the several P/R and a new feature.
You can download the plugin there :
Wish you all the best.