与 Azure DevOps 集成时出现 sonarqube 错误
sonar qube error while integrating with Azure DevOps
我们正在尝试在开发人员尝试合并到 MAIN 分支时集成 SONAR QUBE 检查。
当我们尝试将声纳检查作为签入策略的一部分时,我们收到以下错误
ERROR: Error during SonarScanner execution
ERROR: Validation of project reactor failed:
o To use the property "sonar.pullrequest.key" and analyze pull requests, Developer Edition or above is required. See https://redirect.sonarsource.com/doc/branches.html for more information.
o To use the property "sonar.pullrequest.branch" and analyze pull requests, Developer Edition or above is required. See https://redirect.sonarsource.com/doc/branches.html for more information.
o To use the property "sonar.pullrequest.base" and analyze pull requests, Developer Edition or above is required. See https://redirect.sonarsource.com/doc/branches.html for more information.
ERROR:
The SonarQube Scanner did not complete successfully
15:41:50.483 Post-processing failed. Exit code: 1
The process 'C:\GITGSROOT\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157.11.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1
我们正在使用 SONAR 社区版。 SONAR QUBE 社区版不支持此集成吗?
中所写
Pull Request support requires at least the developer edition of SonarQube. If you don’t want to analyze your pull requests and keep using the community edition, then simply create a second build definition without any SonarQube task, and use it in your branch strategy to build pull requests.
还有here
Pull Request analysis is available as part of Developer Edition and higher.
因此您无法使用社区版执行此操作。
我们正在尝试在开发人员尝试合并到 MAIN 分支时集成 SONAR QUBE 检查。
当我们尝试将声纳检查作为签入策略的一部分时,我们收到以下错误
ERROR: Error during SonarScanner execution
ERROR: Validation of project reactor failed:
o To use the property "sonar.pullrequest.key" and analyze pull requests, Developer Edition or above is required. See https://redirect.sonarsource.com/doc/branches.html for more information.
o To use the property "sonar.pullrequest.branch" and analyze pull requests, Developer Edition or above is required. See https://redirect.sonarsource.com/doc/branches.html for more information.
o To use the property "sonar.pullrequest.base" and analyze pull requests, Developer Edition or above is required. See https://redirect.sonarsource.com/doc/branches.html for more information.
ERROR:
The SonarQube Scanner did not complete successfully
15:41:50.483 Post-processing failed. Exit code: 1
The process 'C:\GITGSROOT\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157.11.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1
我们正在使用 SONAR 社区版。 SONAR QUBE 社区版不支持此集成吗?
Pull Request support requires at least the developer edition of SonarQube. If you don’t want to analyze your pull requests and keep using the community edition, then simply create a second build definition without any SonarQube task, and use it in your branch strategy to build pull requests.
还有here
Pull Request analysis is available as part of Developer Edition and higher.
因此您无法使用社区版执行此操作。