From e9116b6dd9c4d3ced3b0823eaa5cdb3d1cb9fe07 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 26 Jan 2020 17:31:31 +0100 Subject: [PATCH] fixed script --- build_teaspeak.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build_teaspeak.sh b/build_teaspeak.sh index 670f9d8..574cf38 100755 --- a/build_teaspeak.sh +++ b/build_teaspeak.sh @@ -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