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:

  1. In your Slack workspace, navigate to Apps > SonarQube App for Slack.

  2. 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:

  1. In your Slack workspace, navigate to your private channel.

  2. 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.

To subscribe your channel to your project:

  1. In SonarQube Cloud, copy your project key. See Viewing and copying project information.

  2. In your Slack workspace, navigate to the channel in which you want to enable the subscription.

  3. 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.

To unsubscribe a channel from a project:

  1. In SonarQube Cloud, copy the project key. See Viewing and copying project information.

  2. In your Slack workspace, navigate to the channel subscribed to your project.

  3. In the channel, type /sonarqube unsubscribe <project_key>.

Last updated

Was this helpful?