当前位置: 首页 > 面试题库 >

SonarQube Msbuild Runner和Jenkins未经授权的错误

路和悌
2023-03-14
问题内容

尝试使用Jenkins运行Sonarqube MSBuild Runner时出现以下错误。我正在使用SonarQube 4.5和MSBuild
SonarQube Runner 1.1。有关如何解决的任何建议?

Unhandled Exception: System.Net.WebException: The remote server returned an error: (401) Unauthorized.
   at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
   at System.Net.WebClient.DownloadString(Uri address)
   at System.Net.WebClient.DownloadString(String address)
   at SonarQube.TeamBuild.PreProcessor.WebClientDownloader.Download(String url)
   at SonarQube.TeamBuild.PreProcessor.SonarWebService.GetProperties(String projectKey)
   at SonarQube.TeamBuild.PreProcessor.TeamBuildPreProcessor.FetchArgumentsAndRulesets(ProcessedArgs args, TeamBuildSettings settings, ILogger logger, IDictionary`2& serverSettings)
   at SonarQube.TeamBuild.PreProcessor.TeamBuildPreProcessor.DoExecute(ProcessedArgs args, ILogger logger)
   at SonarQube.TeamBuild.PreProcessor.TeamBuildPreProcessor.Execute(String[] args, ILogger logger)
   at SonarQube.TeamBuild.PreProcessor.Program.Main(String[] args)
Pre-processing succeeded.

问题答案:

您需要查看配置文件SonarQube.Analysis.xml。确认属性sonar.host.url是正确的,并且您已经配置了有效的sonar.login和sonar.password。您指定的用户必须能够执行分析。以管理员身份打开SonarQube门户,然后激活管理-
安全-全局权限。该用户必须在Execute Analysis中指定,或者必须是Execute
Analysis中指定的组的成员。如果没有帮助,请提供更多详细信息



 类似资料:
  • 问题内容: 我从Nexus存储库中检出了代码。我更改了帐户密码,并在文件中正确设置了密码。在执行时,我收到错误消息,说明它尝试从该存储库下载文件。 任何想法如何解决此错误?我在Maven 3.04中使用Windows 7 问题答案: 这里的问题是所使用的密码出现错字错误,由于密码中使用了字符/字母,因此很难识别。

  • 我的代码:GoogleCredential凭据 credential.refreshToken() 错误日志: 创建服务号的步骤: 我在凭据中的oauth 2.0中创建了一个Web应用程序 然后我用客户端ID创建了一个服务号 现在我正在使用这个服务号和从它生成的p12证书来验证和创建Google凭据的对象 一旦刷新令牌,我就给了我401例外。 在这种情况下,任何帮助都会受到感激

  • Microsoft.Graph REST.API 我试图通过https://graph.microsoft.com/v1.0/me从graph.api获得有关我的信息 我也在这里检查这个其他主题,但我找不到像我一样的错误

  • 我在应用程序中使用Youtube Api for Android,我在活动中创建了新的YouTubePlayerView动态,例如: 作为代码,“root”是一个RelativeLayout,youTubePlayerView的大小和边距因每个youTubePlayerView而不同; 这段代码有时可以工作,但有时不行,它返回以下错误: 问候

  • 我试图通过Java Apachebeam MongoDbIO连接器连接到MongoDB,得到一个“未授权”错误。 同样的连接细节也适用于Python并能够检索数据。 “org.apache.beam.sdk.io.mongodbo.mongodbio$boundedmongodbsource.$closeresource(Mongodbio.java:407)位于org.apache.beam.s