tripleo-quickstart/ci-scripts/ovb-image-upload.sh
Gael Chamoulaud 77e537f868 Add blank newline at the end of file
This patch adds blank newline for each [yaml|sh] files if they
don't end with one. This will allows us getting linters happy and avoid us
having git adding "\ No newline at end of file" in diffs when pushing
a new patch.

In other way, you can configure Git to properly handle line endings in
typing:

$ git config --global core.autocrlf input

Change-Id: I8a113541b3eae6a36ed32995822dedbbd2d9666e
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2017-03-27 10:40:32 +02:00

32 lines
655 B
Bash
Executable File

#!/bin/bash
# CI script to upload an undercloud image to Openstack Virtual Baremetal.
# $HW_ENV_DIR is the directory where environment-specific files are kept.
# Usage: ovb-image-upload.sh \
# <release> \
# <hw-env-dir> \
# <network-isolation> \
# <ovb-creds-file> \
# <playbook>
set -eux
RELEASE=$1
HW_ENV_DIR=$2
NETWORK_ISOLATION=$3
OVB_CREDS_FILE=$4
PLAYBOOK=$5
pushd $WORKSPACE/tripleo-quickstart
bash quickstart.sh \
--ansible-debug \
--bootstrap \
--working-dir $WORKSPACE/ \
--release $RELEASE \
--extra-vars @$OVB_CREDS_FILE \
--extra-vars get_latest_image='upload' \
--playbook $PLAYBOOK \
localhost
popd