openshift-labs / devops-labs

The Lab for the DevOps Workshop with OpenShift and Containers https://www.openshift.com/
16 stars 43 forks source link

Gradle slave fails build. #2

Open bkoz opened 6 years ago

bkoz commented 6 years ago

Could not find tools.jar. Please check that /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.i386/jre contains a valid JDK installation.

This lab was run on RHDPS v3.9.14

Full console log at https://pastebin.com/raw/LNd5w4Kk

vinicius-martinez commented 6 years ago

Same here on RHPDS 3.10:

`> Task :compileJava FAILED

FAILURE: Build failed with an exception.

BUILD FAILED in 2m 21s 1 actionable task: 1 executed`

ocarvajarh commented 5 years ago

Adding the environment variable OPENSHIFT_JENKINS_JVM_ARCH=x86_64 to the Dockerfile to build the slave image I fixed the problem "Could not find tools.jar".

Moreover I have to add implementation 'org.infinispan:infinispan-client-hotrod:6.3.1.Final-redhat-1' to the dependencies in the build.gradle in order the code compile without errors