我在VS 2017的Build-Agent上有一个TFS-Server-Build (TFS 2017)。第一个Buildstep (准备Sonarqube分析)和解决方案的构建工作正常。但是我在“完成SonarQube分析”中有一个错误:
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
有人能帮上忙吗?
关于Sebastian的Kind
发布于 2017-05-29 21:15:30
我不熟悉TFS-Server-Build,但提到了可能的原因。有关如何正确设置它的更多详细信息,请查看以下link
发布于 2017-05-30 18:53:58
就像前面提到的错误一样,这表示SonarQube was unable to collect the required information about your projects
即使您已经安装了MSBUILD 12或更高版本,也应该确保构建代理调用的是正确的版本。
并仔细检查MSBuild.SonarQube.Runner和MSBuild是否从运行相同的工作目录。在.sonarqube/out文件夹中,是否创建了sonar-project.properties。
https://stackoverflow.com/questions/44237258
复制相似问题