Automatic increment in build release verison
Hi
I want to auto increment project build release version with each jenkins deployment. My jenkin has following goal seetings[1]. I created project by using command[2] and following URL[3]. Please provide guidance, how could I set auto incremental build release version for my project?
As of now, My project is building successfully but with version containing "SNAPSHOT" keyword.
[1] clean install -Dcq.password=password dev-author
[2] Command:
$ mvn archetype:generate \ -DarchetypeRepository=http://repo.adobe.com/nexus/content/groups/public/ \ -DarchetypeGroupId=com.day.jcr.vault \ -DarchetypeArtifactId=multimodule-content-package-archetype \ -DarchetypeVersion=1.0.2 \ -DgroupId=my-group-id \ -DartifactId=myproject \ -Dversion=1.0-SNAPSHOT \ -Dpackage=com.mycompany.myproject \ -DappsFolderName=myproject \ -DartifactName="My Project" \ -DcqVersion="5.6.1" \ -DpackageGroup="My Company"Thanks in advance
