我的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
由于我没有诊断活动日志,我只能怀疑会发生什么。 我怀疑会发生以下情况:
我使用SonarQube和MSBuild.SonarQube.Runner的最新版本。
我需要知道的是: - 我的假设是否正确? - 预处理试图从哪里下载文件? (服务器可以访问http://www.sonarsource.org) - 如果我的假设是错误的,那么是什么让我的构建分析源代码?