当前位置:  开发笔记 > 编程语言 > 正文

TFS 2017.1失败完成SonarQube分析

如何解决《TFS2017.1失败完成SonarQube分析》经验,为你挑选了1个好方法。

在这台测试机上我安装了:

VS17企业版

TFS17.1

SonarQube 6.3

用于MSBuild 2.2的SonarQube扫描仪

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.

Fabrice - So.. 5

MS -ild的SonarQube扫描仪目前不支持MSBuild 15.

我们正在研究这个错误(SONARMSBRU-288),很快就会发布兼容版本来解决这个问题.



1> Fabrice - So..:

MS -ild的SonarQube扫描仪目前不支持MSBuild 15.

我们正在研究这个错误(SONARMSBRU-288),很快就会发布兼容版本来解决这个问题.

推荐阅读
sx-March23
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有