2017-09-26 65 views
0

分析时VSTS Sonarqube任务的问题 .NET项目 - 这是一个角/打字稿项目。这不支持?Sonarqube VSTS构建任务构建角/打字稿项目

我得到这个错误

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 -- 
+0

要验证:您有一个不包含.NET文件.NET项目,只有JavaScript /打字稿? –

+0

您如何创建项目以及如何构建项目? –

+0

对不起错过的答案 - 我得到了一个完全没有.NET的typescript角色项目。我想检查打字稿错误和HTML。 – MrWeiland

回答