using commit hash instead of timestamp for snapshot versions

This commit is contained in:
Sebastian Stenzel
2018-03-27 17:26:07 +02:00
parent 9e8f88f000
commit 7593d5cd40

View File

@@ -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