summaryrefslogtreecommitdiffstats
path: root/jjb/fuel/fuel-deploy.sh
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-08-17 17:43:46 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-08-17 15:52:07 +0000
commit55ffe9aead06fc13b885c5dd04a170856c35b3c9 (patch)
tree96767d3c3057fbc05b167f7e5ac274777d7c1d41 /jjb/fuel/fuel-deploy.sh
parent1df451788541046609e2bdda1b395b4109e8ca70 (diff)
fuel-deploy.sh: source local_env from securedlab
While at it, revert BRIDGE default value to "pxebr" after recent Fuel rework was merged in [1]. This mechanism will be leveraged by [2]. Partially reverts commit: 68195fd [1] https://gerrit.opnfv.org/gerrit/#/c/38855/ [2] https://gerrit.opnfv.org/gerrit/#/c/39521/ Change-Id: Ic61487384029a7d16547a5035a1f1b34ecbea8d4 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'jjb/fuel/fuel-deploy.sh')
-rwxr-xr-xjjb/fuel/fuel-deploy.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/jjb/fuel/fuel-deploy.sh b/jjb/fuel/fuel-deploy.sh
index 29b173ae5..eebd8bc71 100755
--- a/jjb/fuel/fuel-deploy.sh
+++ b/jjb/fuel/fuel-deploy.sh
@@ -33,7 +33,7 @@ fi
# set deployment parameters
export TMPDIR=$HOME/tmpdir
-BRIDGE=${BRIDGE:-,,,}
+BRIDGE=${BRIDGE:-pxebr}
LAB_NAME=${NODE_NAME/-*}
POD_NAME=${NODE_NAME/*-}
@@ -63,13 +63,20 @@ echo "Cloning securedlab repo $BRANCH"
git clone ssh://jenkins-ericsson@gerrit.opnfv.org:29418/securedlab --quiet \
--branch $BRANCH
+# Source local_env if present, which contains POD-specific config
+local_env="${WORKSPACE}/securedlab/labs/$LAB_NAME/$POD_NAME/fuel/config/local_env"
+if [ -e "${local_env}" ]; then
+ echo "-- Sourcing local environment file"
+ source "${local_env}"
+fi
+
# log file name
FUEL_LOG_FILENAME="${JOB_NAME}_${BUILD_NUMBER}.log.tar.gz"
# construct the command
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 \
- -B $BRIDGE -S $TMPDIR -L $WORKSPACE/$FUEL_LOG_FILENAME"
+ -B ${DEFAULT_BRIDGE:-${BRIDGE}} -S $TMPDIR -L $WORKSPACE/$FUEL_LOG_FILENAME"
# log info to console
echo "Deployment parameters"