Closed ivcho02 closed 2 years ago
I don't have an idea unfortunately I'd suggest you to use another docker image (that contains node AND java).
Hi @nikku , Thanks for your reply, I will try to find such an image.
Hi team, I found a solution without changing the docker image:
bitbucket-pipelines.yml
Before npm install put this:
script:
# Install Java
- apt-get update
- apt-get install software-properties-common -y
- add-apt-repository ppa:openjdk/ppa
- apt-get install openjdk-8-jdk -y
- npm ci
Hope it helps.
Best Regards, Ivo
I have the same error i verified my JAVA_HOME env but, this is ok
Hi team, Hope that you are well!
I am trying to use this validator on a Bitbucket pipeline, but unfortunately, the build ends with the following error:
Error: Java SDK required at JAVA_HOME or in path to compile validation helper
Docker image is: node:10.15.3
I couldn't find a way to install java on the Bitbucket virtual machine. The error is thrown on the npm ci step when this dependency is tried to be installed.
Do you have any ideas on how to install java-sdk from the bitbucket-pipeline.yml file?
ps. It's working perfectly on my machine (I have java-sdk installed on my computer)
Kind Regards, Ivo