2016-08-05 51 views
0

Ich habe eine ASP.Net-Webanwendung mit .NET Framework 4.5.1 und baut auf dem TFS-Buildserver (vor Ort) auf, aber SonarQube führt die Analyse nicht durch. Alle anderen Buildschritte sind erfolgreich. SonarQube 6.0 ist eine Neuinstallation, der Runner wurde vor etwa einem Jahr installiert. Die erforderlichen .Net-Frameworks für SonarQube und Builds sind auf dem Erstellungscomputer installiert.SonarQube 6.0 findet kein Projekt auf TFS 2015

Auf einem WebAPI-Projekt funktioniert der Analysator wie ein Zauber. Was könnte es sein?

****************************************************************************** 
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 
****************************************************************************** 

... Gebäudelösung, veröffentlichen Symbole & Tropfen ...

****************************************************************************** 
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

Haben Sie .NET Framework v4.5.2 + installiert? Laut http://docs.sonarqube.org/display/SCAN/From+Team+Foundation+Server+2015+oder+Visual+Studio+Team+Services ist .NET Framework v4.5.2 + erforderlich. –

+0

Ja, .Net Framework v4.5.2, v4.6 und v4.6.1 und VS Pro 15 Update 2 ist auf dem Erstellungscomputer installiert. – webdude

+0

Können Sie bestätigen, dass Ihre Anwendung eine Webanwendungslösung oder eine Website ist? –

Antwort

0

Sie benötigen Visual Studio Enterprise Edition für Codeabdeckung und Sie verwenden VS Pro. Sehen Sie sich this page an und erweitern Sie den Abschnitt "Testing Tools". Die Codeabdeckung ist nur für die Enterprise Edition aufgeführt.