We have been using Sonarcloud to analyse many of our repositories in Bitbucket cloud. One of the repositories is infact a monorepo containing multiple projects within it. But only one of the projects is currently being analysed. My goal is to perform sonar analysis on multiple projects from the said repository and have the results displayed on bitbucket pull requests via decoration.
However, I am unable to setup monorepo projects in sonarcloud. On the " Analyze monorepo projects" page, under the “Organization” dropdown, my organization doesnt get displayed. We only have one organization configured in Sonarcloud, under which all our projects are created. If I try to create a project manually via the " Analyze projects" page, I do see my organization and can successfully create a standard project.
Another related followup question: Is there any configuration changes required in Bitbucket cloud for as part of monorepo setup?
In Bitbucket Repository settings → Sonarcloud settings page, it says “To display the quality of your repository, you have to link it with a project analyzed on SonarCloud.” The only setting is to link a single Sonarcloud project to the repository. What is the expected setting in case of monorepo projects?
We have been using jenkins to perform sonar analysis and submit it to Sonarcloud. We intend to continue using the existing CI pipeline to submit multiple project sonar analysis using different unique project keys, as per monorepo requirements.