我已经按照PDF文档“SonarQube Setup Guide for .NET users”设置了SonarQube 5.2服务器。 服务器启动,我可以访问该网站。我添加了C#,TFVC和msbuild运行插件。
托管源的服务器是TFS2015,我在XAML中有现有的构建定义。当我尝试启动构建时,我得到以下异常:
Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: tfsUri
at SonarQube.TeamBuild.Integration.CoverageReportUrlProvider.GetCodeCoverageReportUrls(String tfsUri, String buildUri, ILogger logger)
at SonarQube.TeamBuild.Integration.TfsLegacyCoverageReportProcessor.TryGetBinaryReportFile(AnalysisConfig config, TeamBuildSettings settings, ILogger logger, String& binaryFilePath)
at SonarQube.TeamBuild.Integration.CoverageReportProcessorBase.ProcessCoverageReports()
at SonarQube.TeamBuild.PostProcessor.CoverageReportProcessor.ProcessCoverageReports()
at SonarQube.TeamBuild.PostProcessor.MSBuildPostProcessor.Execute(String[] args, AnalysisConfig config, TeamBuildSettings settings, ILogger logger)
at SonarQube.TeamBuild.PostProcessor.Program.Main(String[] args)
Exception Message: TF270015: 'MSBuild.SonarQube.Runner.exe' returned an unexpected exit code. Expected '0'; actual '255'. 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)
我已经看到我需要定义collectionUri属性。我在“常规设置”下的SCM类别的服务器网页上完成了此操作。
知道无法找到价值的原因吗? 非常感谢任何帮助。
谢谢,
谢尔盖
答案 0 :(得分:0)
原来我们在我们的环境中使用多个构建代理,而我用于此测试的代理仍在运行Team Foundation Server 2013.更新它可以解决问题。 对于无用的帖子我很抱歉。