We have talked many time in many posts of SonarQube but, how to integrate a project for Windows Phone APP and Jenkins for continuous automatic static testing?

Download MSBuild.SonarQube.Runner-2.0.zip

in SonarQube.Analysis.xml insert the ip of server, user and password:
sonar.host.url: http://sonar_server_ip:9000
sonar.login: admin
sonar.password: admin

1. Open a Developer Command Prompt for VS2015 from the Start menu.
2. Navigate to the folder containing the project that you want to analyze.
3. Run the following commands:
path=%path%;C:\Sq\MSBuild.SonarQube.Runner-1.0.1 (env variable added)
MSBuild.SonarQube.Runner begin /n:AppExample /v:1.0 /k:blm
MSBuild.SonarQube.Runner end

AppExample is the name of project visualized in Sonar Server Dashboard.

To integrate SonarQube and Jenkins need write the follow code in an Execute Windows batch command:
C:\Sq\MSBuild.SonarQube.Runner-2.0\MSBuild.SonarQube.Runner.exe begin /n:AppWallet /v:1.0 /k:blm
nuget restore WalletApp.sln
MSBuild /t:Clean,Build /p:Configuration=Release
C:\Sq\MSBuild.SonarQube.Runner-2.0\MSBuild.SonarQube.Runner.exe end

Happy Testing;)

share me!:))Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someonePrint this page