From 1ba7497ca780dc54b156463ab27240662dc240e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Tr=C4=99bski?= Date: Thu, 19 Oct 2017 06:07:03 +0200 Subject: [PATCH] Restore user condition but with zuul User condition has been restored, but the username that is used in there was changed from `jenkins` to `zuul`. Change-Id: If65d0aec32bbb6670eb0955bf7c87db6d8de5ae9 --- common/build_common.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/build_common.sh b/common/build_common.sh index bdc3219bb..03d3a88e6 100755 --- a/common/build_common.sh +++ b/common/build_common.sh @@ -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