/
Configure Webhook in SonarQube™

Configure Webhook in SonarQube™

Include Code Quality for Bitbucket receives the analysis results from SonarQube™ via Webhook.

Options for Webhook setup

  • Automatic setup (recommended):

    • For SonarQube™ 7.8 or newer

  • Manual setup:

    • Required for SonarQube™ 7.7 or older

    • Or to use BasicAuth or manually configured secret

    • The base URL configured in Bitbucket cannot be reached from SonarQube™

  • Troubleshooting

Manual webhook setup

To manually configure the webhook, enable "manual webhook configuration" in the SonarQube™ server settings. For the manual webhook you have two options:

 

For SonarQube™ 7.7, please make sure to pass -Dsonar.analysis.scmRevision=COMMIT_ID to your SonarQube™ analysis. For newer SonarQube™ versions, this is not necessary anymore.

Related content

Sonar™ Analysis Configuration
Sonar™ Analysis Configuration
Read with this
How to setup Include Code Quality for Bitbucket
How to setup Include Code Quality for Bitbucket
More like this
Fork-based Git workflows
Fork-based Git workflows
Read with this
Troubleshooting
Troubleshooting
More like this
Feature Overview
Feature Overview
Read with this
Include Code Quality for Bitbucket
Include Code Quality for Bitbucket
Read with this

SONAR™, SONARQUBE™ and SONARCLOUD™ are independent and trademarked products and services of SonarSource SA: see sonarsource.com, sonarqube.org, sonarcloud.io.