I have a UI project (HTML, CSS, Angular2.0)
I want to add this to sonarqube, we are using TFS for our build.
I have the following steps
broken down they look as follows
the exception i get is as follows
##[error]The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
You are actually using the SonarQube Scanner for MSBuild (which as his name suggests only work when you have a MSBuild step). With the current tasks you can't analyze a web project like you want to do. There will be a new version of the SonarQube extension including the SonarQube Scanner for CLI that will allow to do so.
For now, the only solution, I can think of, will be for you to include the binaries of SonarQube Scanner for CLI and add a Command Line step after the npm Build one (you will need to remove the Begin Analysis and End Analysis) that will do the analysis.
More information about the Scanner for CLI here