Skip to content

Instantly share code, notes, and snippets.

@regis-leray
Last active August 29, 2015 13:56
Show Gist options
  • Save regis-leray/8849455 to your computer and use it in GitHub Desktop.
Save regis-leray/8849455 to your computer and use it in GitHub Desktop.
Release on steroid
### 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