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.

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