cathive / concourse-sonarqube-resource

performs SonarQube analyses and checks quality gates https://concourse-ci.org/ https://sonarqube.org/
Apache License 2.0
46 stars 50 forks source link

Could not find 'java' executable in JAVA_HOME or PATH. #49

Closed acarsercan closed 4 years ago

acarsercan commented 4 years ago

Hi,

Anything change recently?

Preparing SonarQube scanner... Starting sonar-scanner (type: cli)... Could not find 'java' executable in JAVA_HOME or PATH. ERROR in /opt/resource/out : line 265 with exit code 1

Regards

headcr4sh commented 4 years ago

Oh dear. I must have overlooked something when updating the underlying Java Runtime. I'll have a look.

acarsercan commented 4 years ago

Not sure what happened (or happening) but I set the resource tag from latest to 9.0.1, task passed, then went back to latest, passed again

Any ideas?

headcr4sh commented 4 years ago

Not sure what happened (or happening) but I set the resource tag from latest to 9.0.1, task passed, then went back to latest, passed again

Possibly, your Docker image cache plays some tricks on you. ;-) My recommendation is to always use tagged container images of this resource to avoid "works-sometimes" situations. ;-)

The "latest" tag is always built from the current Git "master" branch and therefore not considered to be stable.

acarsercan commented 4 years ago

Sure. Thanks for the replies. I will close for now

headcr4sh commented 4 years ago

Thanks for the bug report anyway. The current master branch was indeed broken and therefore it is much appreciated. :-)

I am about to add a container-structure-test to make sure that such things won't happen again anytime soon.

I am re-opening this issue to make sure it will be properly closed by my upcoming commit.