- SonarQube-enterprise-9.2.4 version is installed.
- While running the Azure pipeline for SonarQube, the SonarQube Analyze task was failing with “Could not find java executable in JAVA_HOME or PATH”. Although the self-hosted azure agent is configured with JDK11 and below are the results from the agent directly.
$echo $JAVA_HOME
/usr
$which java
/usr/bin/java
$./java -version
openjdk version “11.0.13” 2021-10-19 LTS
Since I am not sure, what else is missing, can any one help to get this fixed. I believe everything is setup properly, as I did the same setup for a DEV environment, it worked fine. Same steps were followed for this STAGING environment too, but this one fails.