aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosep Puigdemont <josep.puigdemont@enea.com>2016-05-12 15:37:26 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2016-05-12 13:54:40 +0000
commit7fc67201534608bed58d15cc312a4fab9b1b7aa3 (patch)
tree1c3663ab907992a73f8f1dfb5dfe6c3ca4e7b530
parentc98699e476e2d564677c95695b7eb1614ee2cb59 (diff)
deploy.sh: read TARGET_LAB and TARGET_POD
Read both TARGET_LAB and TARGET_POD from the command line parameters passed to Fuel's build script. We need these to find local_env. Change-Id: I288dedeb75001b0983e63e68e993b2a35fd6f6fc Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com> (cherry picked from commit 8f1a15e2423d72f65d00fa4b853ee3239b0780da)
-rwxr-xr-xci/deploy.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh
index 5f258c80..8ad11663 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -15,6 +15,13 @@ make patches-import
# source local environment variables
if ! [ -z $LAB_CONFIG_URL ]; then
+ while getopts "l:p:" OPTION 2>/dev/null
+ do
+ case $OPTION in
+ l) TARGET_LAB=$OPTARG;;
+ p) TARGET_POD=$OPTARG;;
+ esac
+ done
local_env=${LAB_CONFIG_URL}/labs/${TARGET_LAB}/${TARGET_POD}/fuel/config/local_env
# try to fetch this file, but don't create it if it does not exist.
# We add "|| true" to ignore the curl error when the file does not exist