Updated Jenkinsfile

This commit is contained in:
WolverinDEV 2019-04-19 14:20:13 +02:00
parent 03d25cac83
commit d4470f92ed
2 changed files with 11 additions and 1 deletions

10
Jenkinsfile vendored
View File

@ -72,6 +72,8 @@ pipeline {
environment { environment {
TEASPEAK_BUILD_TYPE="Debug" TEASPEAK_BUILD_TYPE="Debug"
CMAKE_BUILD_TYPE="Debug" CMAKE_BUILD_TYPE="Debug"
TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=1 -DBUILD_TYPE_NAME='beta'"
} }
steps { steps {
@ -101,6 +103,8 @@ pipeline {
environment { environment {
TEASPEAK_BUILD_TYPE="Release" TEASPEAK_BUILD_TYPE="Release"
CMAKE_BUILD_TYPE="RelWithDebInfo" CMAKE_BUILD_TYPE="RelWithDebInfo"
TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=1 -DBUILD_TYPE_NAME='beta'"
} }
steps { steps {
@ -130,6 +134,8 @@ pipeline {
environment { environment {
TEASPEAK_BUILD_TYPE="Release" TEASPEAK_BUILD_TYPE="Release"
CMAKE_BUILD_TYPE="RelWithDebInfo" CMAKE_BUILD_TYPE="RelWithDebInfo"
TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=0 -DBUILD_TYPE_NAME"
} }
steps { steps {
@ -186,6 +192,8 @@ pipeline {
environment { environment {
TEASPEAK_BUILD_TYPE="Debug" TEASPEAK_BUILD_TYPE="Debug"
CMAKE_BUILD_TYPE="Debug" CMAKE_BUILD_TYPE="Debug"
TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=1 -DBUILD_TYPE_NAME='beta'"
} }
steps { steps {
@ -215,6 +223,8 @@ pipeline {
environment { environment {
TEASPEAK_BUILD_TYPE="Release" TEASPEAK_BUILD_TYPE="Release"
CMAKE_BUILD_TYPE="RelWithDebInfo" CMAKE_BUILD_TYPE="RelWithDebInfo"
TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=1 -DBUILD_TYPE_NAME='beta'"
} }
steps { steps {

View File

@ -5,7 +5,7 @@ fi
mkdir build && cd build mkdir build && cd build
echo "Build type: ${TEASPEAK_BUILD_TYPE}" echo "Build type: ${TEASPEAK_BUILD_TYPE}"
cmake .. -DCMAKE_BUILD_TYPE="${TEASPEAK_BUILD_TYPE}" -DCMAKE_CXX_FLAGS=" ${CXX_FLAGS} -I/usr/local/mysql/connector-c++-8.0/include/jdbc/ -I../../../libraries/boringssl/include/ -D_GLIBCXX_USE_CXX11_ABI=1" -DDISABLE_CUSTOM_OUTPUT=ON -DDISABLE_QT=ON cmake .. -DCMAKE_BUILD_TYPE="${TEASPEAK_BUILD_TYPE}" -DCMAKE_CXX_FLAGS=" ${CXX_FLAGS} -I/usr/local/mysql/connector-c++-8.0/include/jdbc/ -I../../../libraries/boringssl/include/ -D_GLIBCXX_USE_CXX11_ABI=1" -DDISABLE_CUSTOM_OUTPUT=ON -DDISABLE_QT=ON $TEASPEAK_DEPLOY_TYPE_SPECIFIER
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to run CMAKE project" echo "Failed to run CMAKE project"
exit 1 exit 1