diff options
author | Szilard Cserey <szilard.cserey@ericsson.com> | 2015-06-18 17:05:03 +0200 |
---|---|---|
committer | Szilard Cserey <szilard.cserey@ericsson.com> | 2015-06-18 22:01:15 +0200 |
commit | 488f8f86df58806166dbbb4a71d342a691a7b211 (patch) | |
tree | 9c106dfdb942440d889dfe92090a352c4250157f /fuel/ci | |
parent | 9469f7b952505ca142c8f9e996aee5fe011017d3 (diff) |
Updating ci deploy script + argument parsing improvements
JIRA: [BGS-2] Create Fuel deployment script
Change-Id: I891d574a5f8593a83edc89bb145bde90943c593f
Signed-off-by: Szilard Cserey <szilard.cserey@ericsson.com>
Diffstat (limited to 'fuel/ci')
-rwxr-xr-x | fuel/ci/deploy.sh | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/fuel/ci/deploy.sh b/fuel/ci/deploy.sh index df23249..5923f5c 100755 --- a/fuel/ci/deploy.sh +++ b/fuel/ci/deploy.sh @@ -1,12 +1,9 @@ -#!/bin/bash -x -set -o xtrace -set -o errexit -set -o nounset -set -o pipefail +#!/bin/bash +topdir=$(dirname $(readlink -f $BASH_SOURCE)) +deploydir=$(cd ${topdir}/../deploy; pwd) -WORKSPACE=$(readlink -e ..) -ISO_LOCATION="$(readlink -f $(find $WORKSPACE -iname 'fuel*iso' -type f))" -INTERFACE="fuel" +pushd ${deploydir} > /dev/null +echo -e "python deploy.py $@\n" +python deploy.py $@ +popd > /dev/null -cd "${WORKSPACE}/deploy" -./deploy_fuel.sh "$ISO_LOCATION" $INTERFACE 2>&1 | tee deploy_fuel.log |