I am building C++ gradle multiprojects. This is my config:
image: gcc:6.1
pipelines:
default:
- step:
caches:
- gradle
script:
- ./gradlew clean check
I am getting an error:
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
JAVA_HOME isn't set on my build system either.
Is there a way to do this ?
Regards
Peter
Hi @pvittali
The image you are using gcc:6.1 does not have java installed.
You can either use an image that has gcc AND java like atlassian/default-image:2 (more details about this image can be found here)
or you can download a Java JDK in your bitbucket-pipelines.yml and set the JAVA_HOME environment variable.
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.