6 # source the file so we get OPNFV vars
7 source latest.properties
9 # echo the info about artifact that is used during the deployment
10 echo "Using $(echo $OPNFV_ARTIFACT_URL | cut -d'/' -f3) for deployment"
12 # create TMPDIR if it doesn't exist
13 export TMPDIR=$HOME/tmpdir
16 # change permissions down to TMPDIR
20 # get the lab name from SLAVE_NAME
21 # we currently support ericsson and intel labs
22 LAB_NAME=${{SLAVE_NAME%%-*}}
23 if [[ ! "$LAB_NAME" =~ (ericsson|intel) ]]; then
24 echo "Unsupported/unidentified lab $LAB_NAME. Cannot continue!"
27 echo "Using configuration for $LAB_NAME"
31 CONFDIR=$WORKSPACE/deploy/templates/$LAB_NAME/virtual_environment/noha/conf
35 echo "Starting the deployment for a merged change using $INSTALLER_TYPE. This could take some time..."
36 echo "--------------------------------------------------------"
39 # start the deployment
40 echo "Issuing command"
41 echo "sudo $WORKSPACE/ci/deploy.sh -iso $WORKSPACE/opnfv.iso -dea $CONFDIR/dea.yaml -dha $CONFDIR/dha.yaml -s $TMPDIR -b $BRIDGE -nh"
43 sudo $WORKSPACE/ci/deploy.sh -iso $WORKSPACE/opnfv.iso -dea $CONFDIR/dea.yaml -dha $CONFDIR/dha.yaml -s $TMPDIR -b $BRIDGE -nh
46 echo "--------------------------------------------------------"
47 echo "Virtual deployment is done! Removing the intermediate files from artifact repo"
49 PROPERTIES_FILE=$(echo $OPNFV_ARTIFACT_URL | sed 's/iso/properties/')
50 gsutil rm gs://$OPNFV_ARTIFACT_URL
51 gsutil rm gs://$PROPERTIES_FILE