2016-08-05 9 views
0

.Net Framework 4.5.1を使用しているASP.Net Webアプリケーションがあり、TFS Buildserver(構内)に構築されていますが、SonarQubeは分析を実行しません。他のすべてのビルドステップは成功です。 SonarQube 6.0は新鮮なインストールで、1年前にRunnerがインストールされました。 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 Update 2は、ビルドマシンにインストールされています。 – webdude

+0

あなたのアプリケーションがWebアプリケーションソリューションかWebサイトソリューションかを再確認できますか? –

答えて

0

あなたはコードカバレッジのためのVisual Studio Enterpriseエディションを必要とし、あなたがプロVSを使用しています。 this pageを見て、「テスティングツール」セクションを展開してください。コードカバレッジは、エンタープライズ版の場合のみ表示されます。

関連する問題