Move get_extra_vars_from_release to functions
Move get_extra_vars_from_release bash functions to file where all functions are located. Change-Id: Ie2befd0903d2550ff4035ee9ecc745138592c9a6
This commit is contained in:
parent
8c6db50589
commit
67826ec816
|
@ -156,3 +156,11 @@ EOF
|
|||
fi
|
||||
|
||||
}
|
||||
|
||||
get_extra_vars_from_release()
|
||||
{
|
||||
local release_name=$1
|
||||
local release_hash=$2
|
||||
local release_file=$LOCAL_WORKING_DIR/config/release/tripleo-ci/$release_name.yml
|
||||
echo "--extra-vars @$release_file -e dlrn_hash=$release_hash -e get_build_command=$release_hash"
|
||||
}
|
||||
|
|
|
@ -62,14 +62,6 @@ export QUICKSTART_DEFAULT_RELEASE_ARG="--extra-vars @$LOCAL_WORKING_DIR/config/r
|
|||
|
||||
declare -A RELEASE_ARGS=()
|
||||
|
||||
get_extra_vars_from_release()
|
||||
{
|
||||
local release_name=$1
|
||||
local release_hash=$2
|
||||
local release_file=$LOCAL_WORKING_DIR/config/release/tripleo-ci/$release_name.yml
|
||||
echo "--extra-vars @$release_file -e dlrn_hash=$release_hash -e get_build_command=$release_hash"
|
||||
}
|
||||
|
||||
if [[ -f "$RELEASES_FILE_OUTPUT" ]]; then
|
||||
|
||||
source $RELEASES_FILE_OUTPUT
|
||||
|
|
Loading…
Reference in New Issue