2016-08-05 4 views
0

.Net Framework 4.5.1을 사용하는 ASP.Net 웹 응용 프로그램이 있고 TFS Buildserver (건물 내)에 구축 중이지만 SonarQube는 분석을 수행하지 않습니다. 다른 모든 구축 단계는 성공적입니다. SonarQube 6.0은 새로운 설치물이며 Runner는 1 년 전 설치되었습니다. SonarQube 및 빌드에 필요한 .Net Frameworks가 빌드 시스템에 설치됩니다.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

당신은 코드 검사를위한 비주얼 스튜디오 엔터프라이즈 버전이 필요하고 당신은 VS Pro를 사용하고 게시 할 수 있습니다. this page을보고 '테스팅 도구'섹션을 확장하십시오. 코드 범위는 Enterprise 버전에만 나열됩니다.

관련 문제