2017-03-23 38 views
1

在此试验机我已经安装:TFS 2017.1未能完成SonarQube分析

  • VS17企业
  • TFS17.1
  • SonarQube 6.3
  • SonarQube扫描仪为的MSBuild 2.2
  • 的MSBuild /版本

Microsoft(R)Build Engine版本15.1.548.43366版权所有(C) Microsoft Corporation。版权所有。

但是我却越来越对 “完成SonarQube分析” 这个错误:

The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects. 
Possible causes: 

1. The project has not been built - the project must be built in between the begin and end steps 

2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 12.0 upwards are supported 

3. The begin, build or end steps have not all been launched from the same folder 

System.Management.Automation.RuntimeException: Cannot determine if the analysis has finished. Possible cause: your SonarQube server version is lower than 5.3 - for more details see https://go.microsoft.com/fwlink/?LinkId=722407 ---> System.Management.Automation.RuntimeException: Cannot determine if the analysis has finished. Possible cause: your SonarQube server version is lower than 5.3 - for more details see https://go.microsoft.com/fwlink/?LinkId=722407 

--- End of inner exception stack trace --- 

    at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) 

    at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) 

    at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync) 

    at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings) 

    at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings) 

    at Microsoft.TeamFoundation.DistributedTask.Handlers.LegacyVSTSPowerShellHost.VSTSPowerShellHost.Main(String[] args) 

##[error]LegacyVSTSPowerShellHost.exe completed with return code: -1. 
+0

你能在这里分享详细记录吗? –

回答

5

的MSBuild 15当前不SonarQube扫描仪对MSBuild的支持。

我们正在研究此错误(SONARMSBRU-288),并且即将发布兼容版本来解决此问题。

+1

我们遇到了同样的错误,但Visual Studio构建任务设置为VS 2015。 – Sumo