We are analyzing sonar via multibranch jenkins pipeline
The Sonar analysis happening all the branches and coverage also visible for all branches except the main branch (develop branch set as main branch in sonarqube dashboard)
Its an intermittent issue which was working fine 2 days earlies but suddenly stopped showing coverage for develop branch only which is main branch in sonar dashboard
We are passing sonar.branchname for all branches except develop branch to make develop as main branch in sonarqube dashboard
As i compared both the logs (the log which is publishing coverage to sonar and the log which is not publishing the coverage) and i didn’t find any difference
The only difference is we are passing sonar.branch.name parameter for one and the other without sonar.branch.name parameter
Is it mandatory to pass sonar.branch.name parameter in multibranch pipeline configuration
The issue is it was working till yesterday but not today