Merge "support ODT format creation in docs-build.sh"
[releng.git] / jjb / fuel / fuel-deploy.sh
1 #!/bin/bash
2 set -o errexit
3 set -o nounset
4 set -o pipefail
5
6 # source the file so we get OPNFV vars
7 source latest.properties
8
9 # echo the info about artifact that is used during the deployment
10 echo "Using $OPNFV_ARTIFACT_URL for deployment"
11
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
16
17 # create TMPDIR if it doesn't exist
18 export TMPDIR=$HOME/tmpdir
19 mkdir -p $TMPDIR
20
21 # change permissions down to TMPDIR
22 chmod a+x $HOME
23 chmod a+x $TMPDIR
24
25 # set BRIDGE
26 BRIDGE=pxebr
27
28 # log info to console
29 echo "Starting the deployment using $INSTALLER_TYPE. This could take some time..."
30 echo "--------------------------------------------------------"
31 echo
32
33 # start the deployment
34 echo "Issuing command"
35 echo "sudo $WORKSPACE/ci/deploy.sh -iso $WORKSPACE/opnfv.iso -dea $POD_CONF_DIR/dea.yaml -dha $POD_CONF_DIR/dha.yaml -s $TMPDIR -b $BRIDGE -nh"
36
37 sudo $WORKSPACE/ci/deploy.sh -iso $WORKSPACE/opnfv.iso -dea $POD_CONF_DIR/dea.yaml -dha $POD_CONF_DIR/dha.yaml -s $TMPDIR -b $BRIDGE -nh
38
39 echo
40 echo "--------------------------------------------------------"
41 echo "Done!"