Last active
August 29, 2015 13:56
-
-
Save regis-leray/8849455 to your computer and use it in GitHub Desktop.
Release on steroid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Pre step / Execute Shell | |
# Remove the snapshot from the project version | |
project_version=`xpath -q -e "/project/version/text()" pom.xml` | |
mvn versions:set -DnewVersion=${project_version%-SNAPSHOT}-build.${BUILD_NUMBER} | |
### Build | |
clean deploy -Pintegration,release -Denvironment=int -Dpackage-deb=true -Dinstall-deb=true | |
### Post step | |
scm:tag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment