Add Sonar task

Before we can add the sonarqube task we need to we need to download it from the marketplace because the older one is depricated.

Go to Marketplace  -> search for Sonar

Install -> choose account -> continue -> confirm -> close

Now go to your CIBuild for and add the new SonarTasks (SonarQube Scanner for MSbuild Begin Analysis, SonarQube Scanner for MSbuild End Analysis)

Reorder the tasks so that the analysis is activated before the build solution starts

In the SonarQube Server choose add fill in a name, Server Url and the provided token from your sonar account

Fill in the SonarQube Project Settings

And choose save and your all done. Queue a new build and watch your results being published to your server and to your build summary