Make legacy java gate working
Changed the user in condition to be `zuul` instead of `jenkins` Change-Id: I2a55559cfb87c9353cce1a70d26b13f9322bc511
This commit is contained in:
parent
ca5d223611
commit
8dba608c42
@ -8,7 +8,7 @@ BRANCH=$3
|
|||||||
|
|
||||||
check_user() {
|
check_user() {
|
||||||
ME=$1
|
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
|
echo "\nERROR: Download monasca-common and do a mvn install to install the monasca-commom jars\n" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -17,13 +17,13 @@ check_user() {
|
|||||||
BUILD_COMMON=false
|
BUILD_COMMON=false
|
||||||
POM_FILE=~/.m2/repository/monasca-common/monasca-common/${VERSION}/monasca-common-${VERSION}.pom
|
POM_FILE=~/.m2/repository/monasca-common/monasca-common/${VERSION}/monasca-common-${VERSION}.pom
|
||||||
if [ ! -r "${POM_FILE}" ]; then
|
if [ ! -r "${POM_FILE}" ]; then
|
||||||
check_user ${ME}
|
check_user "${ME}"
|
||||||
BUILD_COMMON=true
|
BUILD_COMMON=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This should only be done on the stack forge system
|
# This should only be done on the stack forge system
|
||||||
if [ "${BUILD_COMMON}" = "true" ]; then
|
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
|
cd monasca-common
|
||||||
${MVN} clean
|
${MVN} clean
|
||||||
${MVN} install
|
${MVN} install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user