All

We are trying to setup jenkins to build a gradle project. We are using the 
gradle wrapper inside the project checked out from Git. But when the 
project attempts to build it fails because it can't read a property called 
installBase, but this property exists in the 
$HOME/.gradle/gradle.properties file.

We are unable to remote debug it from eclipse as it just does not hit the 
break point and we can see from the jenkins env system properties that our 
GRADLE_HOME and user.home are being picked up correctly.

in our build.gradle we have this

 task deployJar(type: Copy) {

     from "${buildDir}/libs/${archivesBaseName}-${version}.jar"

     into "${installBase}/lib/application_server/staticdata/${version}"

 }


and we need the installBase to deploy a running jar



git --version
git version 1.7.5.4
Fetching upstream changes from origin
Seen branch in repository origin/HEAD
Seen branch in repository origin/develop
Seen branch in repository origin/master
Commencing build of Revision 3cf6de2d78e71b993d67e4334c4aa261febb54f8 
(origin/develop, origin/master, origin/HEAD)
Checking out Revision 3cf6de2d78e71b993d67e4334c4aa261febb54f8 (origin/develop, 
origin/master, origin/HEAD)
No change to record in branch origin/develop
No change to record in branch origin/master
No change to record in branch origin/HEAD
[Gradle] - Launching build.
[workspace] $ 
/Users/celertechapp/apps/release_1.0/jetty-6.1.26-jenkins/jenkins_home/jobs/celertech-idgen/workspace/gradlew
 clean build
Downloading http://services.gradle.org/distributions/gradle-1.2-bin.zip
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Unzipping 
/Users/celertechapp/apps/release_1.0/jetty-6.1.26-jenkins/jenkins_home/jobs/celertech-idgen/workspace/wrapper/dists/gradle-1.2-bin/35oej0jnbfh6of4dd05531edaj/gradle-1.2-bin.zip
 to 
/Users/celertechapp/apps/release_1.0/jetty-6.1.26-jenkins/jenkins_home/jobs/celertech-idgen/workspace/wrapper/dists/gradle-1.2-bin/35oej0jnbfh6of4dd05531edaj
Set executable permissions for: 
/Users/celertechapp/apps/release_1.0/jetty-6.1.26-jenkins/jenkins_home/jobs/celertech-idgen/workspace/wrapper/dists/gradle-1.2-bin/35oej0jnbfh6of4dd05531edaj/gradle-1.2/bin/gradle

FAILURE: Build failed with an exception.

* Where:
Build file 
'/Users/celertechapp/apps/release_1.0/jetty-6.1.26-jenkins/jenkins_home/jobs/celertech-idgen/workspace/build.gradle'
 line: 42

* What went wrong:
A problem occurred evaluating root project 'workspace'.
> Could not find property 'installBase' on task ':deployJar'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug 
option to get more log output.
BUILD FAILED
Total time: 20.669 secs
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Finished: FAILURE

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to