SonarQube change branch for code analysis

Hi @mmumshad …this is regarding sonarqube, Let’s say Sonarqube is integrated with git and it does code analysis on the default branch in the git repo. Suppose I need to do code analysis on any different branch in the same repo, pls let me know how it can be done.
Also, I was not answered for my previous question on git, pls help on the same.
Thanks in advance!

Hello karthikeyan4595

To achieve integrating git with sonarqube and do code analysis on multiple branches we need to use a CICD tool (like jenkins ) in the middle and integrate it with sonarqube.
this medium article will help you use sonarqube with jenkins:
https://medium.com/devoops-and-universe/jenkins-integration-with-sonarqube-2e9fb3d18919