2016-08-05 4 views
0

У меня есть веб-приложение ASP.Net с использованием .Net Framework 4.5.1 и оно основано на TFS Buildserver (в предположении), но SonarQube не выполняет анализ. Все остальные построения успешны. SonarQube 6.0 - это новая установка, Runner был установлен около года назад. Необходимые .Net Framework для SonarQube и Builds установлены на машине сборки.SonarQube 6.0 не находит проект на TFS 2015

В проекте WebAPI анализатор работает как шарм. Что бы это могло быть?

****************************************************************************** 
Starting task: Fetch the Quality Profile from SonarQube 
****************************************************************************** 
Executing the powershell script: C:\Agents\Agent1\tasks\SonarQubePreBuild\1.0.34\SonarQubePreBuild.ps1 
SonarQube Scanner for MSBuild 1.1 
Default properties file was not found at C:\Agents\Agent1\tasks\SonarQubePreBuild\1.0.34\MSBuild.SonarQube.Runner-1.1\SonarQube.Analysis.xml 
Pre-processing started. 
Preparing working directories... 
Checking for updates... 
SonarQube Scanner for MSBuild Begin Step 2.1 
14:41:58.919 Default properties file was not found at C:\Agents\Agent1\_work\14\.sonarqube\bin\SonarQube.Analysis.xml 
14:41:58.929 Updating build integration targets... 
14:41:58.939 Fetching analysis configuration settings... 
14:41:59.039 Generating rulesets... 
14:42:00.119 Provisioning analyzer assemblies... 
14:42:00.119 Installing required Roslyn analyzers... 
Pre-processing succeeded. 
****************************************************************************** 
Finishing task: SonarQubePreBuild 
****************************************************************************** 

... решение здания, публиковать символы & падение ...

****************************************************************************** 
Starting task: Finish the analysis and upload the results to SonarQube 
****************************************************************************** 
Executing the powershell script: C:\Agents\Agent1\tasks\SonarQubePostTest\1.0.36\SonarQubePostTest.ps1 
SonarQube Scanner for MSBuild 1.1 
Default properties file was not found at C:\Agents\Agent1\tasks\SonarQubePreBuild\1.0.34\MSBuild.SonarQube.Runner-1.1\SonarQube.Analysis.xml 
Post-processing started. 
SonarQube Scanner for MSBuild End Step 2.1 
14:40:50.486 WARNING: Failed to find the code coverage command line tool. Possible cause: Visual Studio is not installed, or the installed version does not support code coverage. 
The exclude flag has been set so the project will not be analyzed by SonarQube. Project file: C:\Agents\Agent1\_work\14\s\TdbWeb\TdbWeb\TdbWeb.csproj 
No analysable projects were found. SonarQube analysis will not be performed. Check the build summary report for details. 
Generation of the sonar-properties file failed. Unable to complete SonarQube analysis. 
14:40:50.526 Creating a summary markdown file... 
Post-processing failed. Exit code: 1 
Unexpected exit code received from batch file: 1 
The build was not set to fail if the associated quality gate fails. 
****************************************************************************** 
Finishing task: SonarQubePostTest 
****************************************************************************** 
+0

Была ли установлена ​​.NET Framework v4.5.2 +? В соответствии с http://docs.sonarqube.org/display/SCAN/From+Team+Foundation+Server+2015+or+Visual+Studio+Team+Services требуется .NET Framework v4.5.2 +. –

+0

Да, .Net Framework v4.5.2, v4.6 и v4.6.1 и VS Pro 15 Обновление 2 установлено на машине сборки. – webdude

+0

Не могли бы вы подтвердить, что ваше приложение является решением для веб-приложений или решений для веб-сайтов? –

ответ

0

Вам нужно Визуальное издание Studio Enterprise для покрытия кода, и вы используете VS Pro. Посмотрите на this page и разверните раздел 'tesing tools'. Охват кода указан только для версии Enterprise.