Is is possible to rename branches other than the main branch?

Hi,

we are using SonarQube 8.2 Enterprise Edition in particular the branch analysis feature. Until now our project used a branch naming pattern like branches/.... Since it is obvious that they are branches, we switched the naming pattern to develop/... and feature/....

I noticed that it is possible to switch/rename the main branch in SonarQube; but is it possible somehow to rename already existing branches in SonarQube to preserve analysis data even after a branch renaming? Right now SonarQube got another branch starting from scratch right next to the branch we already analysed and working with the last years.

Best regards,
Steven

Hi Steven,

Sorry, it’s not possible.

 
:frowning:
Ann

Too bad. But I worked it out by just use a static branch name as scanner parameter instead of dynamically use the git branch name.

Thanks Ann.