So this is a strange situation happening, I do use SonarCloud in a lot of projects, but in this particular client something is not right with the integration.
We are using BitBucket Cloud and the integration worked the day we set it up. But now, the plugin page just shows a Login screen, and you cannot do anything (it will error out with a 401 and a {"errors":[{"msg":"Authentication is required"}]}
).
Tried with multiple browsers, cognito, clearing everything, and of course no ads blockers (now you know I’m used to SonarCloud).
Now, beside this situation the project is being scanned and reports are being generated for all branches you commit code.
The big issue starts when you do a PR. The first scan of the PR is done successfully and you can see the report in BitBucket Cloud. But if you try adding a new commit to that PR, an error will happen in the scan:
INFO: Auto-configuring pull request 4
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 26.289s
INFO: Final Memory: 7M/30M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
ERROR: Parameter 'sonar.pullrequest.branch' is mandatory for a pull request analysis
ERROR:
The SonarQube Scanner did not complete successfully
01:11:28.046 Post-processing failed. Exit code: 1
There is no real issue with the setup of the project so this particular issue is a complete unknown to me.
Hope this helps to troubleshoot.