SonarQube keeps saying loc is above threshold but manual scan succeeds

So when we run the automated jenkins build with sonarscan, the reporting keeps saying that we are above the threshold of lines of code, but after running a manual scan local on the build machine I can see we’re way below that number and it succeeds.

The report then also doesn’t show the warning of too many lines of code, until next daily build has come along.

  • Developer Edition
  • Version 9.6.1 (build 59531)

If you compare the logs between the manual run and the Jenkins build, do you see anything different?

So I fell for the commandline exclusion directories error of the double **
In regular commandline, a single * will do the job, but in the Jenkins pipeline it needs **