Error integration SonarQube Msbuild runner with TeamCity -


i have teamcity build, i've added build start , end actions sonarqube analysis, , between 2 task there build msbuild. when sonarqube plugin executes end phase fails error.

[10:16:52][step 5/9] starting: c:\sonarqube\runner\msbuild.sonarqube.runner.exe end [10:16:52][step 5/9] in directory: c:\agents\build2\work\a6252c8eea7552b3\src [10:16:52][step 5/9] sonarqube scanner msbuild 2.0 [10:16:52][step 5/9] default properties file found @ c:\sonarqube\runner\sonarqube.analysis.xml [10:16:52][step 5/9] loading analysis properties c:\sonarqube\runner\sonarqube.analysis.xml [10:16:53][step 5/9] post-processing started. [10:16:53][step 5/9] sonarqube scanner msbuild end step 2.1 [10:16:53][step 5/9] sonarqube msbuild integration failed: sonarqube unable collect required information projects. [10:16:53][step 5/9] possible causes: [10:16:53][step 5/9]   1. project has not been built - project must built in between begin , end steps [10:16:53][step 5/9]   2. unsupported version of msbuild has been used build project. msbuild 12.0 upwards supported [10:16:53][step 5/9]   3. begin, build or end steps have not been launched same folder [10:16:53][step 5/9] generation of sonar-properties file failed. unable complete sonarqube analysis. [10:16:53][step 5/9] 10:16:53.266  creating summary markdown file... [10:16:53][step 5/9] post-processing failed. exit code: 1 [10:16:53][step 5/9] process exited code 1 [10:16:53][step 5/9] step finish sonarqube analysis (command line) failed 

if login server, open same directory of agent , execute manually 3 steps build executes.

c:\sonarqube\runner\msbuild.sonarqube.runner.exe begin /k:"metrics.net.es" /n:"metrics.net.es" /v:"1.0" msbuild mysolution.sln c:\sonarqube\runner\msbuild.sonarqube.runner.exe end 

everything run fine.

what error?

i've found solution, needed specify working directory msbuild run action in teamcity. after i've set value analysis went ok. if left value blank, got previous error.

enter image description here

gian maria.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -