X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fdeploy.sh;h=b81e5c8c1d8e5130de59d93831f4cefe21b78713;hb=42c5ac6116dc7cc864325e92806ee82f1a6b6d42;hp=8ad11663073f47e85b5c1f83fa068501e6ff7fbf;hpb=1ed6ddaf53e6736d6d700b27ccd67280f024f798;p=armband.git diff --git a/ci/deploy.sh b/ci/deploy.sh index 8ad11663..b81e5c8c 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -9,13 +9,16 @@ # 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 "l:p:" OPTION 2>/dev/null + while getopts "b:B:dfFl:L:p:s:S:T:i:he" OPTION 2>/dev/null do case $OPTION in l) TARGET_LAB=$OPTARG;; @@ -34,5 +37,6 @@ if ! [ -z $LAB_CONFIG_URL ]; then fi fi +unset SSH_KEY cd upstream/fuel/ci ./deploy.sh $@