From 7593d5cd402d6bdcc7a9663e6007145426125263 Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Tue, 27 Mar 2018 17:26:07 +0200 Subject: [PATCH] using commit hash instead of timestamp for snapshot versions --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bdec7451d..1db910c6e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,7 +48,7 @@ before_deploy: if [ -n "$TRAVIS_TAG" ]; then mvn -fmain/pom.xml org.codehaus.mojo:versions-maven-plugin:set -DnewVersion=$TRAVIS_TAG else - mvn -fmain/pom.xml org.codehaus.mojo:versions-maven-plugin:set -DnewVersion=SNAPSHOT-$(date +'%Y%m%d-%H%M%S') + mvn -fmain/pom.xml org.codehaus.mojo:versions-maven-plugin:set -DnewVersion=SNAPSHOT-$(echo $TRAVIS_COMMIT | head -c7) git tag -f continuous git remote add gh https://cryptobot:${GITHUB_API_KEY}@github.com/cryptomator/cryptomator.git git push -f gh continuous