PR Analysis Results Inconsistent - results from master branch sometimes included

Hi Melissa,

SonarQube knows that your P/R is targeting development because it’s specified in the command line.
The problem is that during the analysis it can’t find that branch in the local git references.
Are you sure that the reference is available the agent? Sometimes, to avoid downloading all branches, agents only fetch the branch being built.
You could try calling git fetch --all before calling sonarscanner.

1 Like