Using
- Sonarqube 9.9-LTS (9.9.2.77730) deployed on docker
- Sonar Scanner 5.0.1.3006
I try to rename (via the definition of sonar.projectName property) the name of a project. If the project doesn’t have a main branch analysis, Sonarqube doesn’t rename the project.
Steps to reproduce:
- execute a branch analysis in the project : sonar-scanner.bat “-Dsonar.projectName=albator” “-Dsonar.projectKey=sbtest.092023” “-D sonar.java.binaries=target/classes” “-Dsonar.branch.name=develop”
- consult the project in Sonarqube, it has the right name “albator”
- execute another analysis with a new projectName to rename the project in Sonarqube : sonar-scanner.bat “-Dsonar.projectName=cobra” “-Dsonar.projectKey=sbtest.092023” “-D sonar.java.binaries=target/classes” “-Dsonar.branch.name=develop”
- consult the project in Sonarqube, it has the old name “albator” and not the new name
Seems to be a bug, doesn’t it ?
Filed as SUPPORT-42274