which versions are you using
Sonarcloud
sonarsource/sonar-scanner-cli:latest
how is SonarQube deployed: zip, Docker, Helm
Via sonarcloud
what are you trying to achieve
I’m trying to run a scan, which worked (and still works) with v4.7, but not with 4.8. I can see in the latest commits there were changes made to the JAVA_HOME variable.
what have you tried so far to achieve this
Revert back to 4.7
This is the error message I’m getting, when I try to run the scanner
`` Status: Downloaded newer image for sonarsource/sonar-scanner-cli:latestCould not find 'java' executable in JAVA_HOME or PATH.
I have the same issue with GitLab CI using Docker image sonarsource/sonar-scanner-cli:latest
First it started throwing “shell not found” error, which is lovely to have a tool just change it’s behaviour like that… solved it with “entrypoint: [ ‘/bin/bash’, ‘-c’ ]”
Then it started throwing the “Could not find ‘java’ executable in JAVA_HOME or PATH.” error…