Automated scanning - Azure DevOps - ProjectName adjustment

Hey,

we just introduced the automated scanning feature in our sonarqube cloud instance with Azure DevOps. Everything is working fine, but we are missing the option to adjust the project names with .sonarcloud.properties.

It’s missing something like: sonar.projectName=“MyTeamPrefix/someRepoName”.

We’ve tried to add sonar-project.properties aside to the .sonarcloud.properties, but we had no luck.

Best regards

Hi,

Welcome to the community and thanks for this report!

Have you tried using sonar.projectName in your .sonarcloud.properties file?

 
Thx,
Ann

Hi Ann,
that’s the first thing we tried. It did not work. Our second try was a sonar-project.properties containing that instruction. We also had no success.

Best regards

Hi,

Thanks. What’s not clear to me is whether sonar.projectName has never been supported by Automatic Analysis, or whether this is only an ADO thing.

I’ve flagged this for the team.

 
Ann

Hi ,

any news from the team?

Best regards

Hi,

Unfortunately not.

 
:frowning:
Ann

Hi Bjego,

Thank you for your feedback. I can confirm that currently, setting the project name through .sonarcloud.properties is not supported for Automatic Analysis. About sonar-project.properties, this one is just used for CI or local analysis and there you can set the project name with the property sonar.projectName.

I will share this feedback to the rest of the team, but I cannot guarantee it will be added to our roadmap.

Best regards

Jérôme