I’m in the process of updating the SonarQube project key for several projects. In our setup, the project key is automatically generated by combining a prefix with the project name (e.g., if the project name is sonarproject1 and the prefix is prefix, the key becomes prefix_sonarproject1), so due to this i have to change both project name & key.
To perform the change, I update the project key in the SonarQube UI and modify the YAML pipeline files accordingly. However, after running the analysis on the main branch, I notice that only the main branch’s data and history are preserved — all other branches disappear from the project.
How can I change the project key while ensuring that the history and data of all branches are retained, not just the main branch?
Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:
If you have questions about upgrading, feel free to open a new thread for that here. And please note that as a Data Center Edition customer, you have access to our team of professional Support Engineers.
If your error persists after upgrade, please come back to us.
Hi,
Thanks for the reply, So just to be sure, what you are saying is that if we upgrade our version we won’t be facing this problem, am i right? and there is no external issues we need to take care of?