Сбой сборки Sonarqube для UWP-приложения

У меня есть TFS-Server-Build (TFS 2017) на Build-Agent с VS 2017. Первый этап сборки (подготовка анализа 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

Кто-нибудь может помочь?

С уважением Себастьян


person Sebastian    schedule 29.05.2017    source источник


Ответы (2)


Я не знаком с TFS-Server-Build, но упоминаются возможные причины. Проверьте следующую ссылку для получения дополнительной информации. Подробно о том, как правильно настроить

person Maram Mutaieb    schedule 29.05.2017

Как и в упомянутой ошибке, это означает SonarQube was unable to collect the required information about your projects

Даже если вы установили MSBUILD 12 или выше, вы должны убедиться, что агент сборки вызывает правильную версию.

И еще раз проверьте, запущены ли MSBuild.SonarQube.Runner и MSBuild из одного и того же рабочего каталога. В папке .sonarqube/out создается файл sonar-project.properties или нет.

person PatrickLu-MSFT    schedule 30.05.2017