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 # 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 # create TMPDIR if it doesn't exist
26 # change permissions down to TMPDIR
30 # clone the securedlab repo
32 echo "Cloning securedlab repo"
33 git clone ssh://jenkins-ericsson@gerrit.opnfv.org:29418/securedlab
35 # construct the command
36 DEPLOY_COMMAND="sudo $WORKSPACE/ci/deploy.sh -b file://$WORKSPACE/securedlab -l $LAB_NAME -p $POD_NAME -s $DEPLOY_SCENARIO -i $WORKSPACE/opnfv.iso -H -B $BRIDGE -S $TMPDIR"
39 echo "Deployment parameters"
40 echo "Scenario: $DEPLOY_SCENARIO"
41 echo "--------------------------------------------------------"
44 echo "ISO: $(echo $OPNFV_ARTIFACT_URL | cut -d'/' -f3)"
46 echo "Starting the deployment using $INSTALLER_TYPE. This could take some time..."
47 echo "--------------------------------------------------------"
50 # start the deployment
51 echo "Issuing command"
52 echo "$DEPLOY_COMMAND"
58 echo "--------------------------------------------------------"