I am using SonarQube 8.2 and Bitbucket Server 6.2
I want to have decorative PR show in Bitbucket for a SonarQube project
So far I have tried:
- In SonarQube I have configured the Bitbucket Server credentials with a token with admin access.
- In the SonarQube project I have populated the Bitbucket project Key and Slug.
- I have created a branch make changes that break a rule and raise a PR.
- no decorative PR is visible. No entry in the Compute Engine logs or Main Process.
What am I missing to get Bitbucket to trigger a SonarScan - do I need to setup a Bitbucket webhook to SonarQube?
The SonarQube user guide is not clear on this as it states which I have completed:
Projects created manually
If you create a new project Manually or want to add Pull Request decoration to an existing project, you need to set your project settings at Project Settings > General Settings > Pull Request Decoration . Here you’ll select your Configuration name and set your Project Key and Repo Slug .