Bitbucket PR, where can you see the sonar results or set gates in bitbucket?

I created a new bitbcket account, added repo and pushed a test spring boot project, created a sonarcloud.io account, and added this repo. I could not find how to “analyse the project” from the UI, the only option it gave was to use maven. i did this, but it gave no output, so as a developer I have no idea if my code is good or bad, if it passed or failed. However, if I go to the sonarlcoud.,io, I now see an initial analysis of my main branch.

Then I changed a few things and created a PR in butbcuket. I expected to see something in bitbucket PR to show if my code passed or failed the sonarqube checks, or at least some sort of rating.

What am I missing? How can anyone know if the PR should be merged or not if there is no feedback from sonar?

We really are groping in the dark no how to use this system, we cant find any tutorials or guides, and the docs are confusing and not well organised.

Hi,

For a project built with Maven, that’s the best option. I’m not sure what other choices you were expecting.

That’s what’s expected.

The docs show how to pause your Bitbucket pipeline until the Quality Gate is computed and fail the pipeline if the Quality Gate fails, if that’s what you’re after.

If you imported your Bitbucket project via the SonarCloud UI, pull request decoration should have been set up automatically. Are there any analysis warnings on the project or errors in your Administration → Background Tasks?

As a last-gasp effort, there is always the option of checking the SonarCloud interface.

 
Ann