【发布时间】:2018-03-07 10:34:42
【问题描述】:
分析 none .NET 项目时 VSTS Sonarqube 任务的问题 - 这是一个 angular/typescript 项目。不支持吗?
我收到此错误
2017-09-21T22:55:14.8461722Z ##[error]The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
2017-09-21T22:55:14.8461722Z ##[error]Possible causes:
2017-09-21T22:55:14.8461722Z ##[error]1. The project has not been built - the project must be built in between the begin and end steps
2017-09-21T22:55:14.8461722Z ##[error]2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0 upwards are supported
2017-09-21T22:55:14.8461722Z ##[error]3. The begin, build or end steps have not all been launched from the same folder
2017-09-21T22:55:14.8461722Z Generation of the sonar-properties file failed. Unable to complete SonarQube analysis.
2017-09-21T22:55:14.8461722Z 15:55:14.781 Creating a summary markdown file...
2017-09-21T22:55:14.8461722Z ##[error]15:55:14.783 Post-processing failed. Exit code: 1
2017-09-21T22:55:14.8571628Z ##[error]System.Exception: Unexpected exit code received from batch file: 1
2017-09-21T22:55:14.8571628Z at Microsoft.TeamFoundation.DistributedTask.Task.Internal.InvokeBatchScriptCmdlet.ProcessRecord()
2017-09-21T22:55:14.8571628Z at System.Management.Automation.CommandProcessor.ProcessRecord()
2017-09-21T22:55:15.3215188Z
2017-09-21T22:55:15.3215188Z
2017-09-21T22:55:15.3385192Z Waiting on the SonarQube server to finish processing in order to determine the quality gate status.
2017-09-21T22:55:15.3385192Z
2017-09-21T22:55:15.3385192Z
2017-09-21T22:55:15.3544989Z ##[error]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
2017-09-21T22:55:15.3544989Z --- End of inner exception stack trace --
【问题讨论】:
-
验证:您有一个 .NET 项目,其中没有 .NET 文件,只有 JavaScript/TypeScript?
-
如何创建项目以及如何构建项目?
-
抱歉错过了答案 - 我得到了一个完全没有 .NET 的纯打字稿角项目。我想检查打字稿错误和 html。
标签: angular typescript sonarqube azure-devops