How to convert short-lived branch to ling lived branch

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) Sonarqube * Version 7.9.1
  • what are you trying to achieve. Have the branch recognize as long-lived branch since we’ll doing releases on it.
  • what have you tried so far to achieve this. Due to an incorrect “long lived branch regex”, my branch was recognized as short lived one under master. I realized it and fixed my regex but learnt that once created the branch will remain as short lived.

Now that my branch is recognized as short-lived and cannot be changed, how can I fix this without having to delete the project and re-create it ?
I cannot ignore this branch name and go with a new one either.

Any help is greatly appreciated.

Hello @rakaupuv
thanks for joining the SonarSource community, welcome!
Did you consider removing this single branch from your project?
You can do this from the Project Administration → Branches & Pull Requests page.

Then you would just need to re-analyze this branch to get it recreated as a long-lived branch.

Best regards