devops-labs icon indicating copy to clipboard operation
devops-labs copied to clipboard

Gradle slave fails build.

Open bkoz opened this issue 6 years ago • 2 comments

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

bkoz avatar Aug 29 '18 14:08 bkoz

Same here on RHPDS 3.10:

`> Task :compileJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':compileJava'.

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.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

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

  • full logs at: https://pastebin.com/zVantd04

vinicius-martinez avatar Oct 16 '18 19:10 vinicius-martinez

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

ocarvajarh avatar Feb 22 '19 00:02 ocarvajarh