使用Remote Agent在VSTS中进行SonarQube分析失败

时间:2016-09-02 08:34:24

标签: java sonarqube azure-devops

使用Remote Agent在VSTS中进行SonarQube分析失败,但在托管代理中工作正常。在我安装代理程序的远程计算机中正确设置了Java路径" C:\ Program Files \ Java \ jre1.8.0_92" ......仍面临同样的问题

> SONAR_RUNNER_OPTS is not configured. Setting it to the default value
> of -Xmx1024m Calling the SonarQube Scanner... ERROR: JAVA_HOME exists
> but does not point to a valid Java home folder. No "\bin\java.exe"
> file can be found there. The SonarQube Scanner did not complete
> successfully 08:21:27.994  Creating a summary markdown file...
> Post-processing failed. Exit code: 1 System.Exception: Unexpected exit
> code received from batch file: 1 at
> Microsoft.TeamFoundation.DistributedTask.Task.Internal.PowerShell.InvokeBatchScriptCmdlet.ProcessRecord()
> at System.Management.Automation.CommandProcessor.ProcessRecord()
> Waiting on the SonarQube server to finish processing in order to
> determine the quality gate status.
> System.Management.Automation.RuntimeException: Cannot determine if the
> analysis has finished. Possible cause: your SonarQube server version
> is lower than 5.3 - for more details see
> https://go.microsoft.com/fwlink/?LinkId=722407 --->
> System.Management.Automation.RuntimeException: Cannot determine if the
> analysis has finished. Possible cause: your SonarQube server version
> is lower than 5.3 - for more details see
> https://go.microsoft.com/fwlink/?LinkId=722407
> --- End of inner exception stack trace --- at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable
> input) at
> System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace
> rs, Boolean performSyncInvoke) at
> System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace
> rsToUse, Boolean isSync) at
> System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1
> input, PSDataCollection`1 output, PSInvocationSettings settings) at
> System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1
> input, PSDataCollection`1 output, PSInvocationSettings settings) at
> Microsoft.TeamFoundation.DistributedTask.Handlers.PowerShellHandler.Execute(ITaskContext
> context, CancellationToken cancellationToken, Int32 timeoutInMinutes)
> at
> Microsoft.TeamFoundation.DistributedTask.Worker.JobRunner.RunTask(ITaskContext
> context, TaskWrapper task, CancellationTokenSource tokenSource)
> ****************************************************************************** Finishing task: SonarQubePostTest
> ****************************************************************************** System.Exception: Task SonarQubePostTest failed. This caused the job
> to fail. Look at the logs for the task for more details. at
> Microsoft.TeamFoundation.DistributedTask.Worker.JobRunner.Run(IJobContext
> jobContext, IJobRequest job, IJobExtension jobExtension,
> CancellationTokenSource tokenSource)
> ****************************************************************************** Finishing Build
> ******************************************************************************

0 个答案:

没有答案