which versions are you using:
** SonarQube 10.3
** Scanner sonarsource/sonar-scanner-cli:latest
*** But I’ve tried sonarsource/sonar-scanner-cli:11.0 same thing
how is SonarQube deployed: Docker
what are you trying to achieve. run the scanner as before
what have you tried so far to achieve this: I’ve tried downversions of the sonar-scanner-cli to 11.0 - no dice.
Downgrading sonar-scanner-cli to 10.0 finally worked.
Why is there no JAVA_HOME in sonar-scanner-cli 11.0?
I think it is pretty clear from my description that latest was the one to fail, and that I then tried 11.0, and then 10.0 and that 10.0 worked while latest and 11.0 did not.
We were able to reproduce the issue with prior versions of the sonar-scanner-cli indeed. And we could also demonstrate that the latest version of sonar-scanner-cli no longer has this issue.
The latest version we use is sonarsource/sonar-scanner-cli:11.1.1.1661_6.2.1 which has Digest: sha256:0b90dedf01ef875d69a5a151f73d72b8288a319b39cdfd2ee32a729027a00785
Could you check if this is the version you are using?
I just tried sonarsource/sonar-scanner-cli:11.1.1.1661_6.2.1 and:
Preparing the “docker” executor
Using Docker executor with image sonarsource/sonar-scanner-cli:11.1.1.1661_6.2.1 …
$ sonar-scanner
Could not find ‘java’ executable in JAVA_HOME or PATH.