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 ${OPNFV_ARTIFACT_URL/*\/} for deployment"
12 # checkout the commit that was used for building the downloaded artifact
13 # to make sure the ISO and deployment mechanism uses same versions
14 echo "Checking out $OPNFV_GIT_SHA1"
15 git checkout $OPNFV_GIT_SHA1 --quiet
17 # set deployment parameters
19 export TMPDIR=$HOME/tmpdir
20 LAB_NAME=${NODE_NAME/-*}
21 POD_NAME=${NODE_NAME/*-}
23 if [[ "$NODE_NAME" =~ "virtual" ]]; then
24 POD_NAME="virtual_kvm"
27 if [[ "$NODE_NAME" == "opnfv-jump-2" ]]; then
32 # create TMPDIR if it doesn't exist
33 export TMPDIR=$HOME/tmpdir
36 # change permissions down to TMPDIR
40 # clone the securedlab repo
42 echo "Cloning securedlab repo"
43 git clone ssh://jenkins-ericsson@gerrit.opnfv.org:29418/securedlab --quiet
45 # construct the command
46 DEPLOY_COMMAND="sudo $WORKSPACE/ci/deploy.sh -b file://$WORKSPACE/securedlab -l $LAB_NAME -p $POD_NAME -s $DEPLOY_SCENARIO -i file://$WORKSPACE/opnfv.iso -H -B $BRIDGE -S $TMPDIR"
49 echo "Deployment parameters"
50 echo "--------------------------------------------------------"
51 echo "Scenario: $DEPLOY_SCENARIO"
54 echo "ISO: ${OPNFV_ARTIFACT_URL/*\/}"
56 echo "Starting the deployment using $INSTALLER_TYPE. This could take some time..."
57 echo "--------------------------------------------------------"
60 # start the deployment
61 echo "Issuing command"
62 echo "$DEPLOY_COMMAND"
68 echo "--------------------------------------------------------"