简体   繁体   English

如何在Sonar Qube中重命名项目

[英]How to rename projects in Sonar Qube

I have a few projects which use pom.xmls to run the sonar analysis. 我有一些使用pom.xmls进行声纳分析的项目。 Their names are: 他们的名字是:

Myproject1 Myproject2 Myproject3 Myproject4 Myproject1 Myproject2 Myproject3 Myproject4

I want to rename them on the sonar dashboard: 我想在声纳仪表板上重命名它们:

MyprojectA MyprojectB MyprojectC MyprojectD MyprojectA MyprojectB MyprojectC MyprojectD

whats the simplest way to achieve this? 最简单的方法是什么? I know that we can update the key, and then on-board the project with the desired name. 我知道我们可以更新密钥,然后使用所需的名称将项目添加到项目中。 Is it possible for me to use the same key and update the project display name? 我可以使用相同的键来更新项目显示名称吗?

PS: I use sonarqube version 6.1 PS:我使用的声纳版本为6.1

I had to eventually change the project name in the settings.xml file. 我最终不得不在settings.xml文件中更改项目名称。 This contained my sonar.projectname and sonar.projectkey. 这包含我的sonar.projectname和sonar.projectkey。 Then, I had to onboard the app on the sonar dashboard with the new details and run the analysis. 然后,我必须在声纳仪表板上使用新细节加载该应用程序并运行分析。 However, i still feel that a simple renaming feature could have been easy. 但是,我仍然觉得简单的重命名功能可能很容易。 Since it is more of an enterprise version of sonar we are not allowed to upgrade the sonar version immediately. 由于它更多是声纳的企业版本,因此我们不允许立即升级声纳版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM