Subscribing to Slack notifications
If your admin has connected your Slack workspace to SonarQube Cloud, you can receive real-time notifications on analysis results directly in Slack.
SonarQube Cloud integration with Slack is a beta feature, subject to the terms here.
To subscribe to SonarQube Cloud notifications for your project, you subscribe to your project in the Slack channel of your choice.
Step 1: Log in to the SonarQube App for Slack
Logging in to the SonarQube App for Slack connects your Slack account to your SonarQube Cloud account. You only need to do this once.
To log in to the SonarQube App for Slack:
In your Slack workspace, navigate to Apps > SonarQube App for Slack.
In the Messages tab, type
/sonarqube connect
. You will be prompted to connect your account.
Step 2: Prepare the channel to be used for subscription
You must select the Slack channel to be used to receive your project’s notifications. You can create a new one. Note that:
All channel members will receive the SonarQube Cloud notifications.
You can use the same channel to receive the notifications on different projects distributed across various organizations.
You may need specific permissions to add the app to private channels.
If your slack channel is private, you need to add the SonarQube App for Slack to your channel:
In your Slack workspace, navigate to your private channel.
In the private channel, type
/invite @SonarQube
.
Step 3: Subscribe your channel to your project
Make sure that you have the Browse permission on the project in SonarQube Cloud.
All channel members will receive the SonarQube Cloud notifications on your project.
To subscribe your channel to your project:
In SonarQube Cloud, copy your project key. See Viewing and copying project information.
In your Slack workspace, navigate to the channel in which you want to enable the subscription.
In the channel, type
/sonarqube subscribe <project_key>
.
Unsubscribing a channel from a project
To unsubscribe a channel from a project, you need the Browse permission on the project in SonarQube Cloud.
Unsubscribing a channel from a project disables the subscription for all members of the channel.
To unsubscribe a channel from a project:
In SonarQube Cloud, copy the project key. See Viewing and copying project information.
In your Slack workspace, navigate to the channel subscribed to your project.
In the channel, type
/sonarqube unsubscribe <project_key>
.
Related pages
Last updated
Was this helpful?