Workaround to get internal ip address of zuul in vm

Change-Id: Ic5ae8794900c3681149e5aa5ab4ccacbf7a128cc
This commit is contained in:
Artur Zarzycki 2016-10-28 12:13:42 +02:00
parent b54f49f459
commit c270f3fd96
1 changed files with 4 additions and 0 deletions

View File

@ -90,6 +90,10 @@ if [ ${COMPONENT} == "full" ];then
else
${SCP_COMMAND} -r fuel-ccp/ vagrant@"${ADMIN_IP}":~/
REPO=`echo ${ZUUL_PROJECT} | cut -d '/' -f 2`
# set +x is just for security reasons to avoid publishing internal IP
set +x
getent hosts zuul.mcp.fuel-infra.org | ${SSH_COMMAND} "sudo tee -a /etc/hosts"
set -x
${SSH_COMMAND} "pushd fuel-ccp && tox -e venv -- ccp --verbose --debug --config-file ~/fuel-ccp/tools/ccp-multi-deploy/config/ccp-cli-${VERSION}-config-1.yaml fetch"
${SSH_COMMAND} "cd /tmp/ccp-repos/${REPO} && git fetch ${ZUUL_URL}/${ZUUL_PROJECT} ${ZUUL_REF} && git checkout FETCH_HEAD"
fi