These past few weeks I’ve been trying to set up a Monorepo for our new project and, I am in a constant power struggle with my company to do stuff in Sonarqube; and while they hoard all the power over the tool, they provide no real support when it comes to do things with it, yet I am responsible for everything to be working, but without access to any permission. Thankfully there are a couple guys who are trying to help me despite it not being their job.
I have been trying to create a Monorepo, so far I have created many projects without any issue, however, when I try to set up a monorepo I encounter this strange issue:
First I click on “Set up a Monorepo”:
Afterwards, I can manually write each Project and add all of them, continue and they will be created, but there’s weird things happening with it, scans not working and things that should work don’t.
Does anyone know what permissions I need to be able to go through this wizard without getting the “Insufficient privileges” So I can tell my colleagues in Security to assign these permissions to me?
We did try to have them set up the project for us, and while it worked, they deleted it afterwards because they did not want to be responsible for our projects on paper, and refused to help anymore.
I managed to get a hold of an admin who gave me full permissions over Sonarqube and I found out that there was a project created by an ex-employee of the company. A project nobody but them could see, based on the same projects we were trying to create, which made it so that when I tried to create this monorepo, it conflicted or collided with that one that already existed but, I had no permission to see or bind or whatever Sonarqube does behind the scenes.
This also explains why when I had full permissions over the Sonarqube Server no “insufficient privileges” was triggered.
So, while we created the Monorepo now and all the branches seem to scan properly, we can’t get any of the Monorepo projects to scan the main branch (which for us is develop, set by us in Azure as the default one), and even though I have renamed it in Sonarqube, it does not seem to find it. I keep getting the:
““develop” branch has not been analyzed yet and you have multiple branches already. It looks like it is not your Main Branch, check your configuration.”