SonarQube分析失败

时间:2015-10-08 07:15:05

标签: c# sonarqube code-analysis tfs2013

我的TFS 2013集成SonarQube构建失败了几天。 我收到以下错误消息:

Run optional script before MSBuild

 Unhandled Exception: System.Net.WebException: The remote server returned an error: (403) Forbidden.
 at System.Net.WebClient.DownloadFile(Uri address, String fileName)
 at System.Net.WebClient.DownloadFile(String address, String fileName)
 at SonarQube.Bootstrapper.BuildAgentUpdater.TryUpdate(String hostUrl, String targetDir, ILogger logger)
 at SonarQube.Bootstrapper.Program.PreProcess(IBuildAgentUpdater updater, IBootstrapperSettings settings, ILogger logger)
 at SonarQube.Bootstrapper.Program.Execute(String[] args, IBuildAgentUpdater updater, ILogger logger)
 at SonarQube.Bootstrapper.Program.Main(String[] args)

以后

Run optional script after Test Runner
 Execution failed. The specified executable does not exist: C:\Builds\39\{product name removed}\System_Main_Release_Code_Analysis\.sonarqube\bin\MSBuild.SonarQube.Internal.PostProcess.exe
 Post-processing failed. Exit code: 1

我在任何地方都没有这个MSBuild.SonarQube.Internal.PostProcess.exe。

最后我得到了:

 An error occurred while copying diagnostic activity logs to the drop location. Details: Forbidden

由于我没有诊断活动日志,我只能怀疑会发生什么。 我怀疑会发生以下情况:

  1. 会触发SonarQube分析的开始阶段,并且该过程会尝试从SonarQube网站下载SonarQube.MSBuild.Runner.Implementation.zip。
  2. 服务器上的互联网访问被阻止,下载失败。
  3. SonarQube.MSBuild.Runner.Implentation.zip包含MSBuild.SonarQube.Internal.PostProcess.exe,它将作为预处理的一部分提取。
  4. 由于未下载PostProcess.exe,后期处理失败。
  5. 我使用SonarQube和MSBuild.SonarQube.Runner的最新版本。

    我需要知道的是: - 我的假设是否正确? - 预处理试图从哪里下载文件? (服务器可以访问http://www.sonarsource.org) - 如果我的假设是错误的,那么是什么让我的构建分析源代码?

0 个答案:

没有答案