Files
alfresco-community-repo/scripts/community_release.sh
Cezar.Leahu 3e57490e04 APPS-900 APPS-894 APPS-889 Simplify maven POM setup. Reorganize build stages
* remove unnecessary build environment variables
* add a LOG_WARN environment variable - for shorter build commands
* split the `release.sh` script into `community_release.sh` and `enterprise_release.sh`
* remove usage of the `-Dcommunity` build variable where not needed - use/exclude the `-Penterprise` profile explicitly where needed
* modify the Travis `install` phase on some jobs so it runs a basic Java compilation of the project (without docker)
* remove the *internal* profile and renamed the *master* profile into *publish-docker-latest*
* modifiy the profiles for the docker builds so that the same profile handles both community (DockerHub&Quay) and enteprise (only Quay) docker image deploys
* run all the _Unit&Integration Tests_ across community&enteprise in one single job, in parallel with the REST API & UI test suites (APPS-889)
* reorganize the job order so that the *Tests* stage is the first one executed (APPS-894)
* only run the *Maven&Docker deploy* tasks on the *master* & *release* branches after the *Tests* stage (APPS-894)
2021-03-25 13:14:32 +02:00

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