I can't find how to rename a project in SonarQube 5.1.
Once created, how one can change project name, key, branch, from the web dashboard?
SonarQube's documentation doesn't help.
I can't find how to rename a project in SonarQube 5.1.
Once created, how one can change project name, key, branch, from the web dashboard?
SonarQube's documentation doesn't help.
If you are using jenkins and your sonar build is a post build step. You may add the property mentioned by @adrianko to your goals.
You need to "update the project key" (I always think that the Sonar terminology here isn't very helpful)
https://docs.sonarqube.org/display/SONAR/Project+Settings#ProjectSettings-UpdatingProjectKey
and then re-run the analysis (with the new project key, so having updated your sonar-project.properties or build.xml or pom.xml, etc)
In SonarQube 5.1 the project name can't be changed from the web dashboard (Probably it will not be possible in the future as well).
I configure my SonarQube projects
sonar-project.properties
where I only have to change this line:Rerun the analysis to see the result in the web dashboard.
Sample Usage
usp_ChangeProjectName2 '<project key>', '<new name>'
To change the projet name in UI run this SQL query :