Jenkins job auto-versioning with maven-release-plugin? -


is possible following.

i set on jenkins maven-release-plugin. https://wiki.jenkins-ci.org/display/jenkins/m2+release+plugin works. need press release , change version manually.

how make automatically after every commit? we've committed , jenkins automatically generate new version.

thanks.

if use maven-release-plugin approach, there not alternative pressing button , entering release number.

what's simpler , works better many purposes avoid that. instead:

  • manage first 2 or 3 digits of version number manually editing pom , committing/pushing changes.
  • have last digit come build number supplied jenkins.

tutorials on different approaches here , here.


Comments