Wrong project name in SonarCloud

I have 2 ope source projects created in SonarCloud
https://sonarcloud.io/project/pull_requests_list?id=DenisZhukovski_ObjectToTest
https://sonarcloud.io/project/overview?id=DenisZhukovski_MediaPrint
Once I open ObjectToTest project SonarCloud thinks it’s MediaPrint


Hi,

Welcome to the community!

I suspect this is just a matter of confusion during initial testing about what data points are important and what they do. It looks like you’ve passed sonar.projectName=MediaPrint in for two different projects.

Note that sonar.projectKey (unique identifier) and sonar.projectName (display name) are distinct values. If you don’t provide projectName, it will default to projectKey, but typically the name is a prettier version.

Just make sure you correct the property value in the next analysis, and this should straighten itself out.

 
HTH,
Ann

Yes, you are right, in my CI script it was incorrect projectName for ObjectToTest project, I fixed it, but now in Sonar Cloud I still has the issue with naming, how can I fix it? Should I remove and create sonar project again?

Regards

Hi,

Have you re-run analysis? Values provided as analysis params are only read / applied during analysis.

 
Ann

I did the run and it helped, thank you a lot

1 Like