-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Linux 2.6.18, Jenkins 1.4.15, Artifactory Plugin 2.0.1, Gradle Plugin 1.8, Gradle 1.0-milestone3
I have a large Gradle multi-project build and I'm trying to use the Jenkins Gradle-Artifactory integration to upload snapshot artifacts. The issue is that whenever I save my job configuration, the job works perfect the first time it executes, but the second time I run it, it always fails (and every subsequent execution thereafter until I save the job again). It appears to fail when setting up the Gradle-Artifactory build wrapper, but there is nothing in the build log or system log indicating an error. The output is simply:
Building on master
Notifying upstream projects of job completion
Finished: FAILURE
My build uses the gradle wrapper with the Gradle Artifactory plugin, and the appropriate options are selected in the Jenkins Gradle-Artifactory and Gradle build step configurations. Like I said, it works fine on the first execution after a save, but not after. If I save the job again (even without changing anything) it will work the first time, but not after.
I've attached a sample build that illustrates the problem. Replace the artifactoryUrl value in build.gradle before running. The config.xml file is the jenkins job configuration.