【发布时间】:2017-11-07 17:48:49
【问题描述】:
我有一个 Sonarcloud 帐户,我正在尝试使用 SonarQube.Scanner.MSBuild.exe 分析 Visual Studio 解决方案。我创建了一个令牌,并将其作为 SonarQube.Analysis.xml 文件中的 sonar.login 属性传递。 我使用https://sonarcloud.io 作为sonar.host.url,但我也尝试过https://sonarqube.com。
这里是配置的相关sn-p:
<Property Name="sonar.host.url">https://sonarcloud.io</Property>
<Property Name="sonar.login">***my*token****</Property>
<Property Name="sonar.password"></Property>
<Property Name="sonar.organization">MyOrganization</Property>
分析似乎运行良好,但最终当它尝试将分析上传到 Sonarcloud 时,我收到此错误:
ERROR: Error during SonarQube Scanner execution
ERROR: You're only authorized to execute a local (preview) SonarQube analysis without pushing the results to the SonarQube server. Please contact your SonarQube administrator.
我已尝试连接到本地 Sonarqube 服务器,效果很好。有人知道这里出了什么问题吗?
【问题讨论】: