X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fdeploy.sh;h=8ad11663073f47e85b5c1f83fa068501e6ff7fbf;hb=01de958da6b989712df8e3fe092845b043ab4215;hp=5f258c80c0453cc384226b70334879055809b75c;hpb=bf9b024d1e6b782d0958487a497d60bf18dee51e;p=armband.git 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