Merge "Restore user condition but with zuul"

This commit is contained in:
Zuul 2017-10-19 06:13:06 +00:00 committed by Gerrit Code Review
commit 99bfec7194
1 changed files with 9 additions and 0 deletions

View File

@ -6,9 +6,18 @@ MVN=$1
VERSION=$2
BRANCH=$3
check_user() {
ME=$1
if [ "${ME}" != "zuul" ]; then
echo "\nERROR: Download monasca-common and do a mvn install to install the monasca-commom jars\n" 1>&2
exit 1
fi
}
BUILD_COMMON=false
POM_FILE=~/.m2/repository/monasca-common/monasca-common/${VERSION}/monasca-common-${VERSION}.pom
if [ ! -r "${POM_FILE}" ]; then
check_user "${ME}"
BUILD_COMMON=true
fi