sonarqube5.1 - How to configure SCM support for MSBuild SonarQube Runner? -


i using sonarqube 5.1 msbuild sonarqube runner our quality inspection. scm support not there although have installed tfvc plugin. following log analyze process

07:18:22  07:18:22.352 info  - sensor scm sensor 07:18:22  07:18:22.352 info  - no scm system detected. can use 'sonar.scm.provider' property explicitly specify it. 07:18:22  07:18:22.352 info  - sensor scm sensor (done) | time=0ms 

then set following properties in general "sonar.properites" file loacated in \sonarqube-5.1.2\conf folder (which might doing wrong)

sonar.scm.enabled=true sonar.scm.provider=tfvc sonar.tfvc.username=mytfsusername sonar.tfvc.password.secured=mytfspassword 

i guess these properties should set in "sonar-project.properties" file , passed @ time of analysis (correct me if wrong). problem since using msbuild sonarqube runner, sonar-project.properties file not used anymore , project properties passed @ analysis time. if case how should pass them in?

i searched lot not find proper solution in manner , i'd glad if help.

thanks in advance.

additional properties passed msbuild sonarqube runner during begin phase using following syntax: /d:key=value.

so, can pass of them:

msbuild.sonarqube.runner begin /k:... /n:... /v:... /d:sonar.scm.enabled=true /d:sonar.scm.provider=tfvc /d:sonar.tfvc.username=... /d:sonar.tfvc.password.secured=.... 

auto-detection of scm work if there $tf @ "project base dir" level. directory computed first ancestor path common *.csproj files. can see value following file generated during end phase: .sonarqube\out\sonar-project.properties. sonar.projectbasedir property value near end of file. see https://jira.sonarsource.com/browse/sonarmsbru-8 details.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -