Does anyone knows how to rename project, but keeping history?
Just renaming name for sonar scanner is not doing the job,
as it is creating new project with the name, but the old one contains the history.
If you want to change the name and not the key (often users do both), you’ll need to pass a new sonar.projectName to the scanner and analyze the main branch.
Changing sonar.projectKey without first updating the key in the UI will result in a new project being made. Changing sonar.projectName does not have that effect.