Using SonarQube with TeamCity and C # /. NET

We use TeamCity as our build server - how to configure TeamCity to run SonarQube analysis for C # /. NET solutions?

I think we will need to run the MSBuild runner as a command line task, as the TeamCity SonarQube runner does not name the MSBuild SonarQube runner.

(It would be great if http://docs.sonarqube.org/display/PLUG/C%23+Plugin described this scenario.)

EDIT

The URL in the original message has changed. The correct link is here .

+4
source share
2 answers

: / MSBuild SonarQube Runner Team Foundation Server 2015 ( ), TeamCity. / , Runner SonarQube MSBuild MSBuild .

, TeamCity .

+3

,

  • .cmd

    cd %system.agent.home.dir%
    C:\sonarqube\bin\MSBuild.SonarQube.Runner.exe begin /key:MyKey /name:MyProjectName /version:1
    "C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe" MySolution.sln /t:Rebuild 
    C:\sonarqube\bin\MSBuild.SonarQube.Runner.exe end
    
  • "" TeamCity .cmd

+3

Source: https://habr.com/ru/post/1612257/


All Articles