Short Lived to Long Lived branch

ALM used : Azure DevOps
CI system used : Azure DevOps

We have rc/1_0_0 branch which came to short-lived branch because pattern was not correct. Later we deleted the branch in Sonar and changed the pattern.
Long-lived branches pattern:(main|rc).*

After re-analyzing also, it is coming in short-lived only.

Hey there.

I can’t reproduce this.

Does this look identical to how your project is setup?

for me, in AzureDevOps Repo 1_0_0 branch is under rc folder. But in sonar it is showing only 1_0_0 not as rc/1_0_0

Are you using Git or TFVC?

Using Git

Them I’m not really sure what you mean by:

for me, in AzureDevOps Repo 1_0_0 branch is under rc folder

What is the name of your branch in Git? Can you share a screenshot?

The SonarScanner for Azure DevOps should be using the Build.SourceBranch variable to set sonar.branch.name