Branch analysis for short lived branches

Hello Team,
I’m using SonarQube 7.9 and trying to configure branch analysis for Long and short lived branches.
I have used sonar.branch.name=(dynamic branch name) and sonar.target.name=develop but though the analysis has been run on feature branch it shows as develop and not the name of feature branch.
In UI I have mentioned long lived branch regex as develop and release.
Note: I get the analysis fro short lived branch if i remove target name parameter.
Please advise if I’m missing any other config.

Hi,

Since you’re using “(dynamic branch name)”, I think the easiest thing to start with is adding -Dsonar.scanner.dumpToFile=[path to file] to your analysis command to see exactly what property values analysis is getting. We can go from there.

 
Ann

1 Like

Hello Ann,

I have generated dump file and it says the below:
-Dsonar.branch.name=feature/test -Dsonar.branch.target=develop.

And i realize now that no analysis is being made when i defined the above but if remove branch.target, it works fine.

Hi,

What error do you get?

 
Ann