ACS-457: Build linkage, tagging and release

- improvements on the build scripts
This commit is contained in:
Cezar.Leahu
2020-08-18 11:21:12 +03:00
parent 6105ce9a67
commit ae27d6432f
3 changed files with 27 additions and 16 deletions

View File

@@ -2,7 +2,13 @@
set -ev
pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
PROFILES="$([ "${TRAVIS_BUILD_STAGE_NAME,,}" = "release" ] && echo "-Pinternal" || echo "-PcommunityDocker" )"
source "$(dirname "${BASH_SOURCE[0]}")/build_functions.sh"
if [ "${TRAVIS_BUILD_STAGE_NAME,,}" = "release" ] && [ "${TRAVIS_BRANCH}" = "master" ] && isBranchBuild ; then
PROFILES="-Pinternal"
else
PROFILES="-PcommunityDocker"
fi
mvn -B -V install -DskipTests -Dmaven.javadoc.skip=true "${PROFILES}"