From 900c31487a2160e8f4e07dc46d1ef8c9417f65bb Mon Sep 17 00:00:00 2001 From: zeyu zhu Date: Thu, 17 Nov 2016 11:18:46 +0800 Subject: Implement virtual deployment in merge job of Daisy4nfv CI Change-Id: I2f0edea6a2f527e800c953458b4bb31741e970ab Signed-off-by: zeyu zhu --- jjb/daisy4nfv/daisy4nfv-virtual-deploy.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'jjb') diff --git a/jjb/daisy4nfv/daisy4nfv-virtual-deploy.sh b/jjb/daisy4nfv/daisy4nfv-virtual-deploy.sh index 8936be6c4..9de494fc2 100755 --- a/jjb/daisy4nfv/daisy4nfv-virtual-deploy.sh +++ b/jjb/daisy4nfv/daisy4nfv-virtual-deploy.sh @@ -4,3 +4,24 @@ echo "--------------------------------------------------------" echo "This is diasy4nfv virtual deploy job!" echo "--------------------------------------------------------" +cd $WORKSPACE + +if [[ "$NODE_NAME" =~ "-virtual" ]]; then + export NETWORK_CONF=./deploy/config/vm_environment/$NODE_NAME/network.yml + export DHA_CONF=./deploy/config/vm_environment/$NODE_NAME/deploy.yml +else + exit 1 +fi + +./ci/deploy/deploy.sh ${DHA_CONF} ${NETWORK_CONF} + +if [ $? -ne 0 ]; then + echo "depolyment failed!" + deploy_ret=1 +fi + +echo +echo "--------------------------------------------------------" +echo "Done!" + +exit $deploy_ret -- cgit 1.2.3-korg