2017-05-29 74 views
0

我在使用VS 2017的Build-Agent上構建了TFS服務器構建(TFS 2017)。第一個Buildstep(準備Sonarqube分析)和解決方案的構建工作正常。但我在「完成SonarQube分析」一個錯誤:Sonarqube爲UWP應用程序構建失敗

2017-05-29T03:06:09.1933915Z ##[error]The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects. 2017-05-29T03:06:09.1933915Z ##[error]Possible causes: 2017-05-29T03:06:09.1933915Z ##[error]1. The project has not been built - the project must be built in between the begin and end steps 2017-05-29T03:06:09.1933915Z ##[error]2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 12.0 upwards are supported 2017-05-29T03:06:09.1933915Z ##[error]3. The begin, build or end steps have not all been launched from the same folder 2017-05-29T03:06:09.1933915Z Generation of the sonar-properties file failed. Unable to complete SonarQube analysis. 2017-05-29T03:06:09.1933915Z ##[error]05:06:09.115 Post-processing failed. Exit code: 1

誰能幫助?

親切的問候 塞巴斯蒂安

回答

0

我不熟悉TFS-服務器構建,,但可能的原因被提及。 檢查以下link關於如何設置它的詳細信息正確

0

就像提到的錯誤這代表SonarQube was unable to collect the required information about your projects

即使你已經安裝了MSBUILD 12歲或以上,你應該確保生成代理調用正確的版本。

並仔細檢查MSBuild.SonarQube.RunnerMSBuild是否從運行在同一工作目錄。在.sonarqube/out文件夾sonar-project.properties正在創建或沒有。

相關問題