mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
23 lines
674 B
Bash
23 lines
674 B
Bash
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Use full history for release
|
|
git checkout -B "${TRAVIS_BRANCH}"
|
|
|
|
git config user.email "${GIT_EMAIL}"
|
|
|
|
if [ -z ${RELEASE_VERSION} ] || [ -z ${DEVELOPMENT_VERSION} ]; then
|
|
echo "Please provide a Release and Development version"
|
|
exit 1
|
|
fi
|
|
|
|
mvn -B \
|
|
-Dusername="${GIT_USERNAME}" \
|
|
-Dpassword="${GIT_PASSWORD}" \
|
|
-DreleaseVersion=${RELEASE_VERSION} \
|
|
-DdevelopmentVersion=${DEVELOPMENT_VERSION} \
|
|
-DscmCommentPrefix="[maven-release-plugin][skip ci] " \
|
|
-DuseReleaseProfile=false \
|
|
"-Darguments=-DskipTests -P\!enterprise -Prelease-community,community-release" \
|
|
release:clean release:prepare release:perform
|