I want to run sonar qube analysis only on the latest code in the default branch (hg repo, corresponds to master in git).
I have also some integration branches that run the same plan, but should skip sonar analysis.
For this I have a global variable skipSonar=true.
Now I want to set the variable on the default branch to true.
The only way I can achieve this is to create a branch plan for default and set the variable on that branch.
The problem with this is: now I have two plans building the default branch.
Is there a better way?