summaryrefslogtreecommitdiffstats
path: root/jjb/armband
diff options
context:
space:
mode:
authorJosep Puigdemont <josep.puigdemont@enea.com>2016-06-08 17:32:24 +0200
committerJosep Puigdemont <josep.puigdemont@enea.com>2016-06-08 17:32:24 +0200
commitb671598be465f6b46028b3189375d41c01044c44 (patch)
tree8e0f1dd1869edf8d75b9308b3da8aceef3f393f6 /jjb/armband
parent354761f94cdd7283740a487d5384ef9b233b66c3 (diff)
armband: updated lab-config URL
Change-Id: I317321bbaf1e74419b9508c6da3039b95d9d399d Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Diffstat (limited to 'jjb/armband')
-rwxr-xr-xjjb/armband/armband-deploy.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/jjb/armband/armband-deploy.sh b/jjb/armband/armband-deploy.sh
index 8b0af31e3..901f845bf 100755
--- a/jjb/armband/armband-deploy.sh
+++ b/jjb/armband/armband-deploy.sh
@@ -30,8 +30,7 @@ else
fi
# set deployment parameters
-export TMPDIR=$HOME/tmpdir
-BRIDGE=${DEFAULT_BRIDGE:-pxebr}
+export TMPDIR=${WORKSPACE}/tmpdir
LAB_NAME=${NODE_NAME/-*}
POD_NAME=${NODE_NAME/*-}
@@ -47,7 +46,8 @@ echo "Using configuration for $LAB_NAME"
mkdir -p $TMPDIR
cd $WORKSPACE
-if [[ $LAB_CONFIG_URL =~ ^git:// ]]; then
+if [[ $LAB_CONFIG_URL =~ ^(git|ssh):// ]]; then
+ echo "cloning $LAB_CONFIG_URL"
git clone --quiet --branch ${GIT_BRANCH##origin/} $LAB_CONFIG_URL lab-config
LAB_CONFIG_URL=file://${WORKSPACE}/lab-config
fi
@@ -56,7 +56,7 @@ fi
ISO_FILE=$WORKSPACE/opnfv.iso
# construct the command
-DEPLOY_COMMAND="$WORKSPACE/ci/deploy.sh -l $LAB_NAME -p $POD_NAME -b ${LAB_CONFIG_URL} -s $DEPLOY_SCENARIO -i file://${ISO_FILE} -H -B $BRIDGE -S $TMPDIR"
+DEPLOY_COMMAND="$WORKSPACE/ci/deploy.sh -l $LAB_NAME -p $POD_NAME -b ${LAB_CONFIG_URL} -s $DEPLOY_SCENARIO -i file://${ISO_FILE} -H -B ${DEFAULT_BRIDGE:-pxebr} -S $TMPDIR"
# log info to console
echo "Deployment parameters"