java - SonarQube analysis failed in VSTS with Remote Agent -


sonarqube analysis failed in vsts remote agent working fine in hosted agent. java path set correctly in remote machine agent installed "c:\program files\java\jre1.8.0_92" ... still facing same issue

> sonar_runner_opts not configured. setting default value > of -xmx1024m calling sonarqube scanner... error: java_home exists > not point valid java home folder. no "\bin\java.exe" > file can found there. sonarqube scanner did not complete > 08:21:27.994  creating summary markdown file... > post-processing failed. exit code: 1 system.exception: unexpected exit > code received batch file: 1 @ > microsoft.teamfoundation.distributedtask.task.internal.powershell.invokebatchscriptcmdlet.processrecord() > @ system.management.automation.commandprocessor.processrecord() > waiting on sonarqube server finish processing in order > determine quality gate status. > system.management.automation.runtimeexception: cannot determine if > analysis has finished. possible cause: sonarqube server version > lower 5.3 - more details see > https://go.microsoft.com/fwlink/?linkid=722407 ---> > system.management.automation.runtimeexception: cannot determine if > analysis has finished. possible cause: sonarqube server version > lower 5.3 - more details see > https://go.microsoft.com/fwlink/?linkid=722407 > --- end of inner exception stack trace --- @ system.management.automation.runspaces.pipelinebase.invoke(ienumerable > input) @ > system.management.automation.powershell.worker.constructpipelineanddowork(runspace > rs, boolean performsyncinvoke) @ > system.management.automation.powershell.worker.createrunspaceifneededanddowork(runspace > rstouse, boolean issync) @ > system.management.automation.powershell.coreinvokehelper[tinput,toutput](psdatacollection`1 > input, psdatacollection`1 output, psinvocationsettings settings) @ > system.management.automation.powershell.coreinvoke[tinput,toutput](psdatacollection`1 > input, psdatacollection`1 output, psinvocationsettings settings) @ > microsoft.teamfoundation.distributedtask.handlers.powershellhandler.execute(itaskcontext > context, cancellationtoken cancellationtoken, int32 timeoutinminutes) > @ > microsoft.teamfoundation.distributedtask.worker.jobrunner.runtask(itaskcontext > context, taskwrapper task, cancellationtokensource tokensource) > ****************************************************************************** finishing task: sonarqubeposttest > ****************************************************************************** system.exception: task sonarqubeposttest failed. caused job > fail. @ logs task more details. @ > microsoft.teamfoundation.distributedtask.worker.jobrunner.run(ijobcontext > jobcontext, ijobrequest job, ijobextension jobextension, > cancellationtokensource tokensource) > ****************************************************************************** finishing build > ****************************************************************************** 


Comments