Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rename a project in SonarQube 5.1?

Tags:

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.

like image 291
Francois Avatar asked May 28 '15 16:05

Francois


People also ask

What is SonarQube project name?

sonar.projectName. Name of the project that will be displayed on the web interface. <name> for Maven projects, otherwise project key. If not provided and there is already a name in the DB, it won't be overwritten. sonar.projectVersion.

How do I change the project key in SonarQube?

Updating the Project Key The project key can be updated (without losing the history on the project) at Project Settings > Update Key. The new key must contain at least one non-digit character. Allowed characters are: 'a' through 'z', 'A' through 'Z', '-' (dash), '_' (underscore), '.


1 Answers

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:

sonar.projectName=MyNewProjectName

Rerun the analysis to see the result in the web dashboard.

like image 151
adrianko Avatar answered Sep 19 '22 04:09

adrianko