Our org has purchased sonarcloud license to go with bitbucket, but, despite weeks of effort, we have yet to be able to get our code analysed and any sort of useful gate setup for PRs.
The docs say this:
“SonarQube Cloud will guide you through a tutorial on how to set up your build environment to perform analysis.”
Where is this tutorial? None of the devs, nor myself, have been able to find it, we are groping in the dark.
And then setup your new project (I’m not sure if it shows a project list from Bitbucket because I’m using GitHub, but should be easy too). After this you’ll get the page mentioned in the docs:
Thanks, but this is not available to us. Our very large organization doesn’t allow anyone to click on the analyze new project button, and doesn’t allow us to click on analyze on existing projects (see screen shot). They say that analyze has to be done via pipeline, but we cant find any guides or tutorials, other than the one pager in the docs which doesn’t contain enough information.
The tutorials to guide you in configuring a new analysis are presented to users with the analyze permission. We didn’t anticipate the bind your organization would put you in by mandating you configure pipeline analysis without the permissions to run analysis. Although in retrospect, pipeline-only analysis is what we consider the best practice so this shouldn’t be surprising. I’ll raise the point internally.
In the meantime, the documentation does have some coverage of this, regardless of how “confusing and not well organised” you find it. You may want to start here.