From 8dba608c420b127a80828b4652d88564a2a35189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Tr=C4=99bski?= Date: Thu, 19 Oct 2017 06:03:49 +0200 Subject: [PATCH] Make legacy java gate working Changed the user in condition to be `zuul` instead of `jenkins` Change-Id: I2a55559cfb87c9353cce1a70d26b13f9322bc511 --- common/build_common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/build_common.sh b/common/build_common.sh index f3147411..03d3a88e 100755 --- a/common/build_common.sh +++ b/common/build_common.sh @@ -8,7 +8,7 @@ BRANCH=$3 check_user() { ME=$1 - if [ "${ME}" != "jenkins" ]; then + 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 @@ -17,13 +17,13 @@ check_user() { BUILD_COMMON=false POM_FILE=~/.m2/repository/monasca-common/monasca-common/${VERSION}/monasca-common-${VERSION}.pom if [ ! -r "${POM_FILE}" ]; then - check_user ${ME} + check_user "${ME}" BUILD_COMMON=true fi # This should only be done on the stack forge system if [ "${BUILD_COMMON}" = "true" ]; then - git clone -b ${BRANCH} https://git.openstack.org/openstack/monasca-common + git clone -b ${BRANCH} https://git.openstack.org/openstack/monasca-common --depth 1 cd monasca-common ${MVN} clean ${MVN} install