diff options
Diffstat (limited to 'jjb/fuel/fuel-deploy-virtual.sh')
-rwxr-xr-x | jjb/fuel/fuel-deploy-virtual.sh | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/jjb/fuel/fuel-deploy-virtual.sh b/jjb/fuel/fuel-deploy-virtual.sh deleted file mode 100755 index e7c83b77f..000000000 --- a/jjb/fuel/fuel-deploy-virtual.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash -set -o errexit -set -o nounset -set -o pipefail - -# source the file so we get OPNFV vars -source latest.properties - -# echo the info about artifact that is used during the deployment -echo "Using $(echo $OPNFV_ARTIFACT_URL | cut -d'/' -f3) for deployment" - -# checkout the commit that was used for building the downloaded artifact -# to make sure the ISO and deployment mechanism uses same versions -echo "Checking out $OPNFV_GIT_SHA1" -git checkout $OPNFV_GIT_SHA1 --quiet - -# create TMPDIR if it doesn't exist -export TMPDIR=$HOME/tmpdir -mkdir -p $TMPDIR - -# change permissions down to TMPDIR -chmod a+x $HOME -chmod a+x $TMPDIR - -# get the lab name from SLAVE_NAME -# we currently support ericsson and intel labs -LAB_NAME=${NODE_NAME%%-*} -if [[ ! "$LAB_NAME" =~ (ericsson|intel) ]]; then - echo "Unsupported/unidentified lab $LAB_NAME. Cannot continue!" - exit 1 -else - echo "Using configuration for $LAB_NAME" -fi - -# set CONFDIR, BRIDGE -CONFDIR=$WORKSPACE/deploy/templates/$LAB_NAME/virtual_environment/noha/conf -BRIDGE=pxebr - -# log info to console -echo "Starting the deployment for a merged change using $INSTALLER_TYPE. This could take some time..." -echo "--------------------------------------------------------" -echo - -# start the deployment -echo "Issuing command" -echo "sudo $WORKSPACE/ci/deploy.sh -iso $WORKSPACE/opnfv.iso -dea $CONFDIR/dea.yaml -dha $CONFDIR/dha.yaml -s $TMPDIR -b $BRIDGE -nh" - -sudo $WORKSPACE/ci/deploy.sh -iso $WORKSPACE/opnfv.iso -dea $CONFDIR/dea.yaml -dha $CONFDIR/dha.yaml -s $TMPDIR -b $BRIDGE -nh - -echo -echo "--------------------------------------------------------" -echo "Virtual deployment is done! Removing the intermediate files from artifact repo" - -PROPERTIES_FILE=$(echo $OPNFV_ARTIFACT_URL | sed 's/iso/properties/') -gsutil rm gs://$OPNFV_ARTIFACT_URL -gsutil rm gs://$PROPERTIES_FILE |