【问题标题】:Sonarqube build for UWP-App failedUWP-App 的 Sonarqube 构建失败
【发布时间】:2017-10-29 10:53:44
【问题描述】:

我在 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

谁能帮忙?

亲切的问候 塞巴斯蒂安

【问题讨论】:

    标签: tfs sonarqube sonarqube-scan visual-studio-2017


    【解决方案1】:

    就像提到的错误一样,这代表SonarQube was unable to collect the required information about your projects

    即使您已经安装了 MSBUILD 12 或更高版本,您也应该确保 Build 代理正在调用正确的版本。

    并仔细检查MSBuild.SonarQube.Runner 和MSBuild 是否从同一工作目录 运行。在.sonarqube/out 文件夹中,sonar-project.properties 是否正在创建。

    【讨论】:

      【解决方案2】:

      我不熟悉 TFS-Server-Build,但提到了可能的原因。 查看以下link,了解如何正确设置的更多详细信息

      【讨论】:

        猜你喜欢
        • 2018-05-08
        • 2016-08-05
        • 1970-01-01
        • 1970-01-01
        • 2016-04-30
        • 1970-01-01
        • 2017-03-04
        • 1970-01-01
        • 2018-11-29
        相关资源
        最近更新 更多