fixed script

This commit is contained in:
WolverinDEV 2020-01-26 17:31:31 +01:00
parent 489cb91fef
commit e9116b6dd9
1 changed files with 5 additions and 5 deletions

View File

@ -2,27 +2,27 @@
_build_helper_dir="$(pwd)/build-helpers"
_build_type="Debug"
if [[ -n "${params.build_type}" ]]; then
if [[ -n "${BUILD_TYPE}" ]]; then
echo "This is an automated jenkins build. Initializing variables."
if [[ "${params.build_type}" == "debug" ]]; then
if [[ "${BUILD_TYPE}" == "debug" ]]; then
echo "Initializing debug session."
export _build_type="Debug"
# shellcheck disable=SC2089
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."
export _build_type="RelWithDebInfo"
# shellcheck disable=SC2089
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."
export _build_type="RelWithDebInfo"
# shellcheck disable=SC2089
export TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=0 -DBUILD_TYPE_NAME=\"\""
else
echo "Unknown target build type: ${params.build_type}"
echo "Unknown target build type: ${BUILD_TYPE}"
exit 1
fi
fi