I'm trying to use gradle-release
plugin while using Jenkins for CI. Two commits are created on doing a release using:
gradle release -PuseAutomaticVersion=true
A pre-tag commit with say version=0.0.4
and another with version=0.0.5-SNAPSHOT
. The problem is that Jenkins only picks up the latest commit since they happen one after another. Due to this the release build is never deployed to the Nexus.