APPS-241 - create Community Release for v2.7

This commit is contained in:
ehardon
2020-10-02 13:48:37 +03:00
parent da11c7021f
commit 41c38e8e18
3 changed files with 63 additions and 3 deletions

View File

@@ -0,0 +1,25 @@
#!/bin/bash
set -e
GIT_COMMITTER_NAME=alfresco-build
GIT_COMMITTER_EMAIL=info@alfresco.com
# Use full history for release
git checkout -B "${TRAVIS_BRANCH}"
# Add email to link commits to user
git config user.email "${GIT_COMMITTER_EMAIL}"
git config user.name "${GIT_COMMITTER_NAME}"
if [ -z ${RELEASE_VERSION} ] || [ -z ${DEVELOPMENT_VERSION} ];
then echo "Please provide a Release and Development verison"
exit -1
else
mvn --batch-mode
-Dusername="${GITHUB_USERNAME}" \
-Dpassword="${GITHUB_PASSWORD}" \
-DreleaseVersion=${RELEASE_VERSION} \
-DdevelopmentVersion=${DEVELOPMENT_VERSION} \
-DskipTests -Dcommunity -DuseReleaseProfile=false \
-Prelease-community release:clean release:prepare release:perform
fi