summaryrefslogtreecommitdiffstats
path: root/xci
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-07-03 22:24:41 +0100
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2017-08-11 12:56:12 -0700
commitbbf912a18cfeecdd95bb6e56498b6e8099a5d927 (patch)
treed2b6a030160d62dcf7fb9ba711540ee8b39b4238 /xci
parent8f81ada6df7441c459f5c59ce565321903c58d75 (diff)
prototypes: xci: xci-deploy.sh: Append trailing slash for rsync vars
The 'synchronize' Ansible module uses rsync and for that we need to indicate that we want to copy the contents of the development path and not the development path itself. As such we need to ensure that a trailing slash is always appended to the user variables but we need to also ensure that we will not end up with double slashes. Change-Id: I0103b754585931fa1dcd3966c52d7e4a8f2f63f6 Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci')
-rwxr-xr-xxci/xci-deploy.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/xci/xci-deploy.sh b/xci/xci-deploy.sh
index 3a65983a..a72c9274 100755
--- a/xci/xci-deploy.sh
+++ b/xci/xci-deploy.sh
@@ -38,6 +38,15 @@ source "$XCI_PATH/config/${XCI_FLAVOR}-vars"
source $XCI_PATH/config/env-vars
#-------------------------------------------------------------------------------
+# Sanitize local development environment variables
+#-------------------------------------------------------------------------------
+user_local_dev_vars=(OPNFV_RELENG_DEV_PATH OPNFV_OSA_DEV_PATH OPNFV_BIFROST_DEV_PATH)
+for local_user_var in ${user_local_dev_vars[@]}; do
+ [[ -n ${!local_user_var} ]] && export $local_user_var=${!local_user_var%/}/
+done
+unset user_local_dev_vars local_user_var
+
+#-------------------------------------------------------------------------------
# Log info to console
#-------------------------------------------------------------------------------
echo "Info: Starting XCI Deployment"