summaryrefslogtreecommitdiffstats
path: root/jjb/daisy4nfv/daisy4nfv-virtual-deploy.sh
blob: 9de494fc28651a563b3b277b9af84b4ed3d31484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

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