连接到SonarQube服务器时无法授权。检查您的凭据,然后重试

时间:2018-01-03 12:03:19

标签: xamarin.forms msbuild sonarqube sonarqube-scan

我正在尝试为我的Xamarin Forms项目运行SonarQube,我在我的.SLN文件所在的路径上并执行以下命令

命令:

$ mono /Users/akandasamy/Development/HIDProjects/sonar-scanner-msbuild-4.0.2.892/MSBuild.SonarQube.Runner.exe begin / k:“HIDReaderManagerApp”/d:sonar.host.url="http: // localhost:9000“/d:@ zinar.login =我的登录令牌”

错误:

MSBuild 4.0.2的SonarQube扫描仪 默认属性文件位于/Users/akandasamy/Development/HIDProjects/sonar-scanner-msbuild-4.0.2.892/SonarQube.Analysis.xml 从/Users/akandasamy/Development/HIDProjects/sonar-scanner-msbuild-4.0.2.892/SonarQube.Analysis.xml加载分析属性 预处理开始了。 准备工作目录...... 17:29:10.391更新构建集成目标...... 17:29:10.414获取分析配置设置...... 17:29:10.517无法请求和解析“http://localhost:9000/api/settings/values?component=HIDReaderManagerApp”:远程服务器返回错误:(401)。 17:29:10.517连接SonarQube服务器时无法授权。检查您的凭据,然后重试。 17:29:10.518预处理失败。退出代码:1

1 个答案:

答案 0 :(得分:0)

使用api/settings/values参数时,Browse API需要component权限。请查看您进行身份验证的用户是否具有上述许可。