From: Josep Puigdemont Date: Thu, 12 May 2016 13:37:26 +0000 (+0200) Subject: deploy.sh: read TARGET_LAB and TARGET_POD X-Git-Tag: colorado.1.rc1~483 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F23%2F14023%2F1;p=armband.git 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 --- 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