Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle slave fails build. #2

Open
bkoz opened this issue Aug 29, 2018 · 2 comments
Open

Gradle slave fails build. #2

bkoz opened this issue Aug 29, 2018 · 2 comments

Comments

@bkoz
Copy link

bkoz commented Aug 29, 2018

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
Copy link

vinicius-martinez commented Oct 16, 2018

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`

@ocarvajarh
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants