fixed script
This commit is contained in:
parent
489cb91fef
commit
e9116b6dd9
@ -2,27 +2,27 @@
|
|||||||
_build_helper_dir="$(pwd)/build-helpers"
|
_build_helper_dir="$(pwd)/build-helpers"
|
||||||
|
|
||||||
_build_type="Debug"
|
_build_type="Debug"
|
||||||
if [[ -n "${params.build_type}" ]]; then
|
if [[ -n "${BUILD_TYPE}" ]]; then
|
||||||
echo "This is an automated jenkins build. Initializing variables."
|
echo "This is an automated jenkins build. Initializing variables."
|
||||||
|
|
||||||
if [[ "${params.build_type}" == "debug" ]]; then
|
if [[ "${BUILD_TYPE}" == "debug" ]]; then
|
||||||
echo "Initializing debug session."
|
echo "Initializing debug session."
|
||||||
export _build_type="Debug"
|
export _build_type="Debug"
|
||||||
# shellcheck disable=SC2089
|
# shellcheck disable=SC2089
|
||||||
export TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=1 -DBUILD_TYPE_NAME=\"beta\""
|
export TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=1 -DBUILD_TYPE_NAME=\"beta\""
|
||||||
elif [[ "${params.build_type}" == "optimized" ]]; then
|
elif [[ "${BUILD_TYPE}" == "optimized" ]]; then
|
||||||
echo "Initializing optimized session."
|
echo "Initializing optimized session."
|
||||||
export _build_type="RelWithDebInfo"
|
export _build_type="RelWithDebInfo"
|
||||||
# shellcheck disable=SC2089
|
# shellcheck disable=SC2089
|
||||||
export TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=1 -DBUILD_TYPE_NAME=\"beta\""
|
export TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=1 -DBUILD_TYPE_NAME=\"beta\""
|
||||||
elif [[ "${params.build_type}" == "stable" ]]; then
|
elif [[ "${BUILD_TYPE}" == "stable" ]]; then
|
||||||
echo "Initializing stable session."
|
echo "Initializing stable session."
|
||||||
export _build_type="RelWithDebInfo"
|
export _build_type="RelWithDebInfo"
|
||||||
# shellcheck disable=SC2089
|
# shellcheck disable=SC2089
|
||||||
export TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=0 -DBUILD_TYPE_NAME=\"\""
|
export TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=0 -DBUILD_TYPE_NAME=\"\""
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Unknown target build type: ${params.build_type}"
|
echo "Unknown target build type: ${BUILD_TYPE}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user