Search code examples
tfssonarqubealm

TFS Build not adding folder to SonarQube


We have introduced SonarQube to our project integrated with TFS Build (2017).

That is our project structure:

enter image description here

SonarQube should run over App, DotNetNuke and LotesKWKPortal

The problem is that Sonar is adding only KWKPortal and LotesKWKPortal, the App folder is ignored:

enter image description here

Is this a problem with the Build definition or with SonarQube?

It seems like Sonar is only analysing folders with .sln files. How do I tell my TFS build to consider all folders in the repository?

EDIT:

That is how our build definition look like:enter image description here


Solution

  • You're using the SonarQube scanner for MSBuild tasks. Per the docs, you should use the SonarQube CLI task for anything not touched by MSbuild, such as JavaScript.