Pull request decorations for Bitbucket server

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Currently using Sonarqube Enterprise Server 8.5.1.38104 along with BitBucket Server Atlassian Bitbucket v7.1.0, along with Jenkins.

  • what are you trying to achieve
    We are currently trying to achieve the pull request decorations feature provided by SonarQube with BitBucket server but pull request decoration is not working in Bitbucket it’s showing as “Report with key ‘com.sonarsource.sonarqube’ has not yet been created”

  • what have you tried so far to achieve this
    Below steps have been tried -

  1. All required steps under https://docs.sonarqube.org/latest/analysis/pr-decoration/ for bitbucket have been implemented.

  2. The destination branch (not the main branch) has already been scanned with SonarQube. The source branch is scanned using sonarLint.

  3. Raised the pull request but the pull request is not getting decorated.

Hi Suranjan, welcome to the SonarSource Community!

For PR decoration to succeed, analysis parameters must also be included to describe the PR as documented in the PR Overview topic.

Since you’re using Jenkins, it’s actually simplified if you’re willing to install both the BitBucket Branch Source plugin as well as the SonarScanner plugin as described here. The PR context parameters will be automatically set as appropriate.

Hi Jeff
It worked!!! Thanks a lot for your super quick response and help.

A post was split to a new topic: Help with Bitbucket Server PR Decoration