Before we can add the sonarqube task we need to we need to download it from the marketplace because the older one is depricated.
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
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