作者:小辉0110_737 | 来源:互联网 | 2023-02-01 22:08
我有一个Sonarcloud帐户,正在尝试使用SonarQube.Scanner.MSBuild.exe分析Visual Studio解决方案。我创建了一个令牌,并将其作为SonarQube.Analysis.xml文件中的sonar.login属性传递。我使用https://sonarcloud.io作为sonar.host.url,但我也尝试过https://sonarqube.com。
这是配置的相关代码段:
https://sonarcloud.io
***my*token****
MyOrganization
分析似乎运行良好,但是最后尝试将分析上传到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服务器,并且工作正常。有人知道这里出了什么问题吗?
1> G. Ann - Son..:
您可能会缺少sonar.organization
分析属性。您应该能够从项目主页上的“组织密钥”字段中获取值。如果服务器上尚不存在您的项目,则可以通过以下方式登录获得该项目:我的帐户>组织