Due to the integration with Eclipse, the project key of my existing Sonar project needs to be changed. I can change the project key in the ant script and trigger a new analysis.
However, Sonar considers it as a new project because the key is different now. This doesn't work for me because my existing project has quite a lot of history information. How can I change the project key while preserving the analysis history? Or, is there a way to merge 2 sonar projects?
This is supported since sonar 3.2 (August 2012) from an option in the adminstration.
Ticket: http://jira.codehaus.org/browse/SONAR-1608
In this feature-request SONAR-2743 you can find a workaround for prior versions, that could work (don't forget to backup you database before even trying).
It requires you to manually execute some sql-statements on the database.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With