Gradle error on Jenkins

Gradle wanted to create in /usr/share/tomcat7/.gradle/native/jna/linux-amd64/, which is the home directory of Tomcat. Choosing “Force GRADLE_USER_HOME to use workspace” resolved this issue.

[workspace] $ /srv/jenkins/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.1/bin/gradle --debug build
04:05:25.131 [DEBUG] [] Unable to initialize native-platform. Failure: net.rubygrapefruit.platform.NativeException: Failed to load native library '' for Linux amd64.
caused by: No such file or directory
04:05:29.541 [ERROR] [org.gradle.BuildExceptionReporter] 
04:05:29.544 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
04:05:29.545 [ERROR] [org.gradle.BuildExceptionReporter] 
04:05:29.546 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
04:05:29.546 [ERROR] [org.gradle.BuildExceptionReporter] Could not create an instance of type org.gradle.invocation.DefaultGradle_Decorated.
04:05:29.571 [ERROR] [org.gradle.BuildExceptionReporter] 
04:05:29.573 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
04:05:29.574 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. 
Build step 'Invoke Gradle script' changed build result to FAILURE

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>