I'm trying to use the Jenkins Artifactory Release Management plugin to deploy a Gradle project to Artifactory. The build works, version numbers are correctly identified from the gradle.properties file, the JAR file is successfully published to Artifactory and an appropriately-named branch and tag are created. Looking in Jenkins' workspace, I can see that the version number is correctly incremented in gradle.properties, and, by SSH-ing to the Jenkins box, I can see that it was committed. However, when I do a 'git pull' on my own machine, I only get the new branch and tag, not an updated gradle.properties file.
It seems that the push is failing silently, and I'm not sure why, the console output looks like: Deploying artifact: http://elided01:8081/artifactory/libs-release-local/foo/commons/0.0.22/bar-0.0.22.jar BUILD SUCCESSFUL Total time: 4.759 secs Build step 'Invoke Gradle script' changed build result to SUCCESS [RELEASE] Committing release version on branch 'REL-BRANCH-0.0.22' > /usr/bin/git config --get remote.origin.url # timeout=10 > /usr/bin/git add -u # timeout=10 > /usr/bin/git commit -F /var/lib/jenkins/tmp/gitcommit8559573052455803793.txt > # timeout=10 > /usr/bin/git config --get remote.origin.url # timeout=10 [RELEASE] Creating tag 'bar/v-0.0.22' with message '[artifactory-release] Release version 0.0.22' > /usr/bin/git tag -a -f -m [artifactory-release] Release version 0.0.22 > bar/v-0.0.22 # timeout=10 > /usr/bin/git config --get remote.origin.url # timeout=10 [RELEASE] Pushing branch 'REL-BRANCH-0.0.22' to 'git@elided02:foo.commons' using GIT_SSH to set credentials jenkins ssh > /usr/bin/git --version # timeout=10 > /usr/bin/git push git@elided02:foo.commons refs/heads/REL-BRANCH-0.0.22 > --tags # timeout=10 > /usr/bin/git config --get remote.origin.url # timeout=10 > /usr/bin/git config core.sparsecheckout # timeout=10 > /usr/bin/git checkout -f artifactory-promotion [RELEASE] Changing gradle.properties at /var/lib/jenkins/workspace/foo.commons/gradle.properties for development version [RELEASE] Committing next development version on branch 'artifactory-promotion' > /usr/bin/git config --get remote.origin.url # timeout=10 > /usr/bin/git add -u # timeout=10 > /usr/bin/git commit -F /var/lib/jenkins/tmp/gitcommit1404885918582771817.txt > # timeout=10 > /usr/bin/git config --get remote.origin.url # timeout=10 [RELEASE] Pushing branch 'artifactory-promotion' to 'git@elided02:foo.commons' using GIT_SSH to set credentials jenkins ssh > /usr/bin/git --version # timeout=10 > /usr/bin/git push git@elided02:foo.commons refs/heads/artifactory-promotion > --tags # timeout=10 Finished: SUCCESS Everything there seems fine, it's just that the 'push' on the penultimate line doesn't actually seem to happen. My only clue at the moment, is the following warning in the Jenkins logs, which might be irrelevant, but happens every time I try to run the Release Management plugin: <entry><title>RunListener failed</title><link rel="alternate" type="text/html" href="http://jenkins01:8080/log"/><id>941</id><published>2015-12-21T16:42:54Z</published><updated>2015-12-21T16:42:54Z</updated><content>Dec 21, 2015 4:42:54 PM hudson.model.listeners.RunListener report WARNING: RunListener failed java.lang.IllegalStateException: cannot change build result while in POST_PRODUCTION at hudson.model.Run.setResult(Run.java:459) at org.jfrog.hudson.gradle.ArtifactoryGradleConfigurator$ReleaseRunListener.onCompleted(ArtifactoryGradleConfigurator.java:881) at org.jfrog.hudson.gradle.ArtifactoryGradleConfigurator$ReleaseRunListener.onCompleted(ArtifactoryGradleConfigurator.java:837) at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:201) at hudson.model.Run.execute(Run.java:1786) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) </content></entry> This is with Jenkins v.1.618. Any suggestions gratefully received! -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0c28af7d-d262-4c57-b209-364987df58da%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.