Sonarcloud 'pull request' tab always empty with bitbucket cloud

ALM used Bitbucket Cloud
CI system used Bitbucket Cloud

I setup sonarcloud paid plan with bitbucket cloud, everything seems to work fine but the ‘Pull Request’ tab in sonrcloud project is always empty. the bitbucket widget in pull requests works and links me to the branch in sonarcloud. i selected bitbucket cloud provider for pull requests in general settings but still no pull requests in sonarcloud dashboard , i can see all the branches fine. its not a deal breaker but it nice to have this tab.

Hey there.

Welcome to our Community!

Are you running a SonarCloud analysis when your pull requests are built? At the end of the analysis it should link you to a Pull Request on SonarCloud (what you are expecting to see in the Pull Requests tab)

INFO: ANALYSIS SUCCESSFUL, you can find the results at:
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at
INFO: Analysis total time: 20.718 s

Note the pullRequest=2 at the end of the link.

You can make sure this analysis is being run on pull requests by defining it in your pipeline.

      - step: *build-test-sonarcloud

(assuming you’ve named the step build-test-sonarcloud)

Thank you.
we didn’t have a pull-requests pipeline,only default and branches/master. i now understand that to get the full integration of sonarcloud with bitbucket cloud there needs to be a pull-requests pipeline. i don’t recall reading about that in the documentation.
after i added pull-requests pipeline i can see the full integration working, the pull-requests tab in sonarcloud shows what i expect to see and there is a sonar report directly in the bitbucket pipeline. all that wasn’t there without the pull-requests pipeline.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.