X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fdeploy.sh;h=179b168fb769bdcd6a070d36be5ababfa74c78b9;hb=8d66fab2be0d345a773ebc679ea49fcd18af9bb6;hp=5f258c80c0453cc384226b70334879055809b75c;hpb=bf9b024d1e6b782d0958487a497d60bf18dee51e;p=armband.git diff --git a/ci/deploy.sh b/ci/deploy.sh index 5f258c80..179b168f 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -10,11 +10,17 @@ set -e cd $WORKSPACE -make submodules-init 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