Gradle clean build not working in my server

While trying to configure continues delivery using UCD <-> git <-> gradle.
I have installed git and gradle in our AIX server.
Basically, the process is: 1.- Download code version using git into UCD Code Station
Validate if the app is running in our WAS server (in order to define if app will need to be removed before to updated) Download artifacts into our agent trying to execute gradle clean build getting below error

What went wrong: Execution failed for task ‘:MyApp:compileJava’.

Could not find tools.jar
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 8.938 secs

This gradle command is working on my local machine.
I have configured GRADLE_HOME and JAVA_HOME in my local machine and server
Please help

gradle 2.12