Jenkins plugin "Execute sonarqube scanner" NOT analyze C# code


(carrison) #1

Must-share information:

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    sq 7.2.1, scanner 3.0.3.778, plugin 2.6.1,jenkins 2.134
  • what are you trying to achieve
    use plugin “Execute sonarqube scanner” to analyze C# code.
  • what have you tried so far to achieve this
    see attached snapshot.

the editor seems can not save more snapshot.it prompt “Sorry, an error has occurred.”


(carrison) #2


no C# code analyzed in project report.


(Amaury Levé) #3

Hi @carrison,

It seems like you are running the wrong scanner. To analyzer C# you need to use the scanner for msbuild (please have a look at the documentation ).

Cheers,
Amaury


(carrison) #4

Absolutely. scanner for msbuild works fine. But why swq scanner not analyse c# code?


(Nicolas Bontoux) #5

I can quickly comment on that:

Good insights in this post: