【问题标题】:Exception Message: TF270015: 'MSBuild.SonarQube.Runner.exe' returned an unexpected exit code. Expected '0'; actual '-532462766'异常消息:TF270015:“MSBuild.SonarQube.Runner.exe”返回了意外的退出代码。预期为“0”;实际'-532462766'
【发布时间】:2016-03-06 17:12:46
【问题描述】:

我正在尝试将 SonarQube MSBuild 运行程序与 TFS 2013 集成,并且我正在使用 SonarQube 5.2 版本和 MSBuild.SonarQube.Runner-1.0.2 以及 LDAP、.NET 和 C# 所需的所有插件。运行TFS Build 时出现此错误:

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, ILogger logger)
at SonarQube.TeamBuild.PreProcessor.PropertiesFetcher.FetchProperties(SonarWebService ws, String sonarProjectKey, ILogger logger)
at SonarQube.TeamBuild.PreProcessor.TeamBuildPreProcessor.FetchArgumentsAndRulesets(ProcessedArgs args, String configDir, 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)
Exception Message: TF270015: 'MSBuild.SonarQube.Runner.exe' returned an unexpected exit code. Expected '0'; actual '-532462766'. See the build logs for more details. (type UnexpectedExitCodeException)Exception Stack Trace:    at System.Activities.Statements.Throw.Execute(CodeActivityContext context)   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

【问题讨论】:

    标签: msbuild ldap sonarqube sonarqube-msbuild-runner sonarqube5.2


    【解决方案1】:

    只有technical users支持MSBuild.SonarQube.Runner.exeSonarQube Runner 对带有 LDAP 插件 1.5 的 SonarQube 5.2 进行身份验证.1(并启用 Windows 身份验证模式)。

    【讨论】:

    • 这似乎是问题所在,一旦我修改了 MSBuild SonarQube Runner 以向技术用户进行身份验证,它就可以工作了......谢谢
    猜你喜欢
    • 1970-01-01
    • 2023-03-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-04
    • 2011-04-20
    相关资源
    最近更新 更多