X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fdeploy.sh;h=b81e5c8c1d8e5130de59d93831f4cefe21b78713;hb=refs%2Fchanges%2F01%2F39801%2F1;hp=5f258c80c0453cc384226b70334879055809b75c;hpb=8226520a7281e9846ac1d6c2616b1056a1c335c1;p=armband.git diff --git a/ci/deploy.sh b/ci/deploy.sh index 5f258c80..b81e5c8c 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -9,12 +9,22 @@ # set -e -cd $WORKSPACE -make submodules-init +SCRIPT_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]})) + +export ARMBAND_BASE=$(readlink -e ${SCRIPT_DIR}/..) + +cd ${WORKSPACE:-${ARMBAND_BASE}} make patches-import # source local environment variables if ! [ -z $LAB_CONFIG_URL ]; then + while getopts "b:B:dfFl:L:p:s:S:T:i:he" 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 @@ -27,5 +37,6 @@ if ! [ -z $LAB_CONFIG_URL ]; then fi fi +unset SSH_KEY cd upstream/fuel/ci ./deploy.sh $@