Hi,
I was trying to apply my QG (non-default) to my project, it works. But when I create a new branch, it picks up default QG.
Can someone guide me how to configure this?
Regards
Neal
Hi,
I was trying to apply my QG (non-default) to my project, it works. But when I create a new branch, it picks up default QG.
Can someone guide me how to configure this?
Regards
Neal
Hey There,
I’d be happy to help. Can you share your SonarQube version? The answer depends on the version.
Thanks,
Josh
Hi @Joshua_Martin, Thank you for the quick response, we are currently using * Community Edition
Thanks,
Branches usually use the same quality profile set for a certain project. How are you analyzing these branches?
Hi @Joshua_Martin I am very new to Sonar terminologies, I dont know what that exactly means? Can you please provide little more detail?
We are using bamboo for build, github as version control, if that helps in anyway?
If you want me to check some particular settings, I can pull them and share with you.
No worries. The current standard for scanning branches is by using sonar.branch.name and sonar.branch.target when scanning that branch (docs for reference). What do you have these set to for the branches you’re scanning?
Thanks for the reply, this doc was very helpful to understand what can be wrong.
As the doc refers to sonar.branch.name Name of the branch (visible in the UI)
I believe what can help resolve issue is sonar.branch.target but I dont see anything in UI to configure this.
All our projects are in java and we use maven for build
So do I configure sonar.branch.target in my maven pom file, is it the right place to do so?
2. So something like <sonar.branch.target>develop</sonar.branch.target> in maven properties?
Hi @Joshua_Martin did you got a chance to take a look at my reply?
Hey there!
Let me know if you have any more questions.