2018-08-08 15:53:18 -04:00
|
|
|
pipeline {
|
2019-10-13 13:35:01 -04:00
|
|
|
agent any
|
2018-11-01 11:16:06 -04:00
|
|
|
|
|
|
|
parameters {
|
2018-11-01 11:28:05 -04:00
|
|
|
booleanParam(defaultValue: true, description: 'Deploy this build', name: 'deploy_build')
|
2020-01-26 10:42:01 -05:00
|
|
|
choice(choices: ['none', 'x86_debug', 'x86_release', 'x86_stable', 'amd64_debug', 'amd64_release', 'amd64_stable', 'arm32v7_debug', 'arm32v7_release', 'arm32v7_stable'], description: 'Which target do you want to build?', name: 'target')
|
2018-11-01 11:16:06 -04:00
|
|
|
}
|
2018-11-01 11:42:08 -04:00
|
|
|
|
|
|
|
environment {
|
|
|
|
//CMake specific flags
|
|
|
|
CMAKE_OPTIONS = ''
|
2020-01-25 10:29:43 -05:00
|
|
|
CMAKE_MAKE_OPTIONS = '-j32'
|
2018-11-01 11:42:08 -04:00
|
|
|
|
|
|
|
//Make specific flags
|
2020-01-25 10:29:43 -05:00
|
|
|
MAKE_OPTIONS = '-j32'
|
2019-04-19 08:02:50 -04:00
|
|
|
|
|
|
|
JENKINS_BUILD_TARGET="${params.target}"
|
2018-11-01 11:42:08 -04:00
|
|
|
}
|
2018-08-09 15:57:58 -04:00
|
|
|
|
2018-11-01 11:42:47 -04:00
|
|
|
stages {
|
2019-04-19 07:59:30 -04:00
|
|
|
/* build all amd64 stuff */
|
2020-01-26 10:42:01 -05:00
|
|
|
stage ('build::amd64') {
|
2019-04-19 07:59:30 -04:00
|
|
|
agent {
|
|
|
|
label 'linux && amd64 && teaspeak'
|
|
|
|
}
|
|
|
|
when {
|
2020-01-26 10:42:01 -05:00
|
|
|
expression { params.target == "amd64_debug" || params.target == "amd64_release" || params.target == "amd64_stable" }
|
2019-04-19 07:59:30 -04:00
|
|
|
}
|
2019-10-13 12:52:17 -04:00
|
|
|
|
|
|
|
environment {
|
|
|
|
build_os_type="linux"
|
2019-10-13 13:44:14 -04:00
|
|
|
build_os_arch="amd64"
|
2019-10-13 12:52:17 -04:00
|
|
|
}
|
2019-04-19 07:59:30 -04:00
|
|
|
|
2020-01-25 10:29:16 -05:00
|
|
|
stages {
|
2020-01-26 10:42:01 -05:00
|
|
|
stage ('build::amd64::libraries') {
|
2019-04-19 07:59:30 -04:00
|
|
|
environment {
|
|
|
|
CMAKE_BUILD_TYPE="RelWithDebInfo" /* we build out libraries every time in release mode! (Performance improve) */
|
2018-11-24 10:26:52 -05:00
|
|
|
}
|
2018-08-09 15:57:58 -04:00
|
|
|
|
2019-04-19 07:59:30 -04:00
|
|
|
steps {
|
2020-01-25 10:29:16 -05:00
|
|
|
sh './attach_modules.sh'
|
2019-04-19 07:59:30 -04:00
|
|
|
sh 'cd libraries; ./build.sh'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-01-26 10:42:01 -05:00
|
|
|
stage ('build::amd64::debug') {
|
2019-04-19 07:59:30 -04:00
|
|
|
when {
|
2020-01-26 10:42:01 -05:00
|
|
|
expression { params.target == "amd64_debug" }
|
2019-04-19 07:59:30 -04:00
|
|
|
}
|
|
|
|
|
2018-11-01 11:42:47 -04:00
|
|
|
stages {
|
2020-01-26 10:42:01 -05:00
|
|
|
stage ('build::amd64::debug::build') {
|
2019-04-19 07:59:30 -04:00
|
|
|
environment {
|
|
|
|
TEASPEAK_BUILD_TYPE="Debug"
|
|
|
|
CMAKE_BUILD_TYPE="Debug"
|
2019-04-19 08:20:13 -04:00
|
|
|
|
|
|
|
TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=1 -DBUILD_TYPE_NAME='beta'"
|
2019-04-19 07:59:30 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh './build_teaspeak.sh'
|
2018-11-01 11:42:47 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-19 07:59:30 -04:00
|
|
|
stage ('build::amd64::debug::deploy') {
|
|
|
|
when {
|
|
|
|
expression { params.deploy_build }
|
|
|
|
}
|
2018-11-01 11:42:47 -04:00
|
|
|
|
2019-04-19 07:59:30 -04:00
|
|
|
steps {
|
2019-04-19 08:07:20 -04:00
|
|
|
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/amd64_debug'
|
2019-04-19 07:59:30 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-26 10:42:01 -05:00
|
|
|
stage ('build::amd64::release') {
|
2019-04-19 07:59:30 -04:00
|
|
|
when {
|
2020-01-26 10:42:01 -05:00
|
|
|
expression { params.target == "amd64_release" }
|
2019-04-19 07:59:30 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
2020-01-26 10:42:01 -05:00
|
|
|
stage ('build::amd64::release::build') {
|
2018-11-01 11:42:47 -04:00
|
|
|
environment {
|
2019-04-19 07:59:30 -04:00
|
|
|
TEASPEAK_BUILD_TYPE="Release"
|
|
|
|
CMAKE_BUILD_TYPE="RelWithDebInfo"
|
2019-04-19 08:20:13 -04:00
|
|
|
|
|
|
|
TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=1 -DBUILD_TYPE_NAME='beta'"
|
2019-01-22 15:07:36 -05:00
|
|
|
}
|
2018-11-01 11:42:47 -04:00
|
|
|
|
2019-04-19 07:59:30 -04:00
|
|
|
steps {
|
|
|
|
sh './build_teaspeak.sh'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage ('build::amd64::release::deploy') {
|
|
|
|
when {
|
|
|
|
expression { params.deploy_build }
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/amd64_optimized'
|
2018-11-01 11:42:47 -04:00
|
|
|
}
|
|
|
|
}
|
2018-11-01 11:42:08 -04:00
|
|
|
}
|
|
|
|
}
|
2019-04-19 08:07:20 -04:00
|
|
|
|
2020-01-26 10:42:01 -05:00
|
|
|
stage ('build::amd64::stable') {
|
2019-04-19 08:07:20 -04:00
|
|
|
when {
|
2020-01-26 10:42:01 -05:00
|
|
|
expression { params.target == "amd64_stable" }
|
2019-04-19 08:07:20 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
2020-01-26 10:42:01 -05:00
|
|
|
stage ('build::amd64::stable::build') {
|
2019-04-19 08:07:20 -04:00
|
|
|
environment {
|
|
|
|
TEASPEAK_BUILD_TYPE="Release"
|
|
|
|
CMAKE_BUILD_TYPE="RelWithDebInfo"
|
2019-04-19 08:20:13 -04:00
|
|
|
|
2019-04-19 08:27:25 -04:00
|
|
|
TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=0 -DBUILD_TYPE_NAME=''"
|
2019-04-19 08:07:20 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh './build_teaspeak.sh'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage ('build::amd64::stable::deploy') {
|
|
|
|
when {
|
|
|
|
expression { params.deploy_build }
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/amd64_stable'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-04-19 07:59:30 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* build all x86 stuff */
|
|
|
|
stage ('build::x86') {
|
|
|
|
agent {
|
|
|
|
label 'linux && x86 && teaspeak'
|
|
|
|
}
|
|
|
|
when {
|
|
|
|
expression { params.target == "x86_debug" || params.target == "x86_release" || params.target == "x86_stable" }
|
|
|
|
}
|
2019-10-13 12:52:17 -04:00
|
|
|
|
|
|
|
environment {
|
|
|
|
build_os_type="linux"
|
2019-10-13 13:44:14 -04:00
|
|
|
build_os_arch="x86"
|
2019-10-13 12:52:17 -04:00
|
|
|
}
|
2019-04-19 07:59:30 -04:00
|
|
|
|
|
|
|
stages {
|
|
|
|
stage ('build::x86::libraries') {
|
|
|
|
environment {
|
|
|
|
CMAKE_BUILD_TYPE="RelWithDebInfo" /* we build out libraries every time in release mode! (Performance improve) */
|
2019-05-27 14:21:59 -04:00
|
|
|
BUILD_ARCH_TARGET="x86"
|
2019-04-19 07:59:30 -04:00
|
|
|
}
|
2018-08-09 15:57:58 -04:00
|
|
|
|
2019-04-19 07:59:30 -04:00
|
|
|
steps {
|
2020-01-25 10:29:16 -05:00
|
|
|
sh './attach_modules.sh'
|
2019-04-19 07:59:30 -04:00
|
|
|
sh 'cd libraries; ./build.sh'
|
2018-08-09 15:57:58 -04:00
|
|
|
}
|
2019-04-19 07:59:30 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
stage ('build::x86::debug') {
|
2018-11-24 10:26:52 -05:00
|
|
|
when {
|
2019-04-19 07:59:30 -04:00
|
|
|
expression { params.target == "x86_debug" }
|
2018-11-24 10:26:52 -05:00
|
|
|
}
|
2019-04-19 07:59:30 -04:00
|
|
|
|
2018-08-09 15:57:58 -04:00
|
|
|
stages {
|
2019-04-19 07:59:30 -04:00
|
|
|
stage ('build::x86::debug::build') {
|
2018-11-01 11:42:47 -04:00
|
|
|
environment {
|
|
|
|
TEASPEAK_BUILD_TYPE="Debug"
|
2019-01-22 15:13:01 -05:00
|
|
|
CMAKE_BUILD_TYPE="Debug"
|
2019-04-19 08:20:13 -04:00
|
|
|
|
|
|
|
TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=1 -DBUILD_TYPE_NAME='beta'"
|
2018-11-01 11:42:47 -04:00
|
|
|
}
|
|
|
|
|
2018-08-09 15:57:58 -04:00
|
|
|
steps {
|
2018-11-01 11:42:08 -04:00
|
|
|
sh './build_teaspeak.sh'
|
2018-08-09 15:57:58 -04:00
|
|
|
}
|
|
|
|
}
|
2018-11-01 11:42:47 -04:00
|
|
|
|
2020-01-26 10:42:01 -05:00
|
|
|
stage ('build::x86::debug::deploy') {
|
2018-11-01 11:42:08 -04:00
|
|
|
when {
|
|
|
|
expression { params.deploy_build }
|
2018-11-01 11:16:06 -04:00
|
|
|
}
|
2018-11-01 11:42:47 -04:00
|
|
|
|
2018-11-01 11:42:08 -04:00
|
|
|
steps {
|
2019-04-19 08:07:20 -04:00
|
|
|
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/x86_debug'
|
2018-08-09 15:57:58 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-04-19 07:59:30 -04:00
|
|
|
|
|
|
|
stage ('build::x86::release') {
|
2018-11-01 11:42:08 -04:00
|
|
|
when {
|
2019-04-19 07:59:30 -04:00
|
|
|
expression { params.target == "x86_release" }
|
2018-11-01 11:42:08 -04:00
|
|
|
}
|
2019-04-19 07:59:30 -04:00
|
|
|
|
2018-11-01 11:42:47 -04:00
|
|
|
stages {
|
2019-04-19 07:59:30 -04:00
|
|
|
stage ('build::x86::release::build') {
|
2018-11-01 11:42:47 -04:00
|
|
|
environment {
|
|
|
|
TEASPEAK_BUILD_TYPE="Release"
|
2019-01-22 15:07:36 -05:00
|
|
|
CMAKE_BUILD_TYPE="RelWithDebInfo"
|
2019-04-19 08:20:13 -04:00
|
|
|
|
|
|
|
TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=1 -DBUILD_TYPE_NAME='beta'"
|
2018-11-01 11:42:47 -04:00
|
|
|
}
|
2018-11-01 11:42:08 -04:00
|
|
|
|
2018-11-01 11:42:47 -04:00
|
|
|
steps {
|
|
|
|
sh './build_teaspeak.sh'
|
|
|
|
}
|
|
|
|
}
|
2018-11-01 11:42:08 -04:00
|
|
|
|
2020-01-26 10:42:01 -05:00
|
|
|
stage ('build::x86::release::deploy') {
|
2018-11-01 11:42:47 -04:00
|
|
|
when {
|
|
|
|
expression { params.deploy_build }
|
|
|
|
}
|
2018-11-01 11:42:08 -04:00
|
|
|
|
2018-11-01 11:42:47 -04:00
|
|
|
steps {
|
2019-04-19 08:07:20 -04:00
|
|
|
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/x86_optimized'
|
2018-11-01 11:42:47 -04:00
|
|
|
}
|
|
|
|
}
|
2018-08-09 15:57:58 -04:00
|
|
|
}
|
|
|
|
}
|
2019-06-20 07:10:41 -04:00
|
|
|
|
2020-01-26 10:42:01 -05:00
|
|
|
stage ('build::x86::stable') {
|
2019-06-20 07:10:41 -04:00
|
|
|
when {
|
|
|
|
expression { params.target == "x86_stable" }
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage ('build::x86::stable::build') {
|
|
|
|
environment {
|
|
|
|
TEASPEAK_BUILD_TYPE="Release"
|
|
|
|
CMAKE_BUILD_TYPE="RelWithDebInfo"
|
|
|
|
|
|
|
|
TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=0 -DBUILD_TYPE_NAME=''"
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh './build_teaspeak.sh'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-26 10:42:01 -05:00
|
|
|
stage ('build::x86::stable::deploy') {
|
2019-06-20 07:10:41 -04:00
|
|
|
when {
|
|
|
|
expression { params.deploy_build }
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/x86_stable'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-08-09 15:59:22 -04:00
|
|
|
}
|
2018-08-09 15:58:53 -04:00
|
|
|
}
|
2020-01-26 10:42:01 -05:00
|
|
|
|
|
|
|
/* build all arm32v7 stuff */
|
|
|
|
stage ('build::arm32v7') {
|
|
|
|
agent {
|
|
|
|
label 'linux && arm32v7 && teaspeak'
|
|
|
|
}
|
|
|
|
when {
|
|
|
|
expression { params.target == "arm32v7_debug" || params.target == "arm32v7_release" || params.target == "arm32v7_stable" }
|
|
|
|
}
|
|
|
|
|
|
|
|
environment {
|
|
|
|
build_os_type="linux"
|
|
|
|
build_os_arch="arm32v7"
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage ('build::arm32v7::libraries') {
|
|
|
|
environment {
|
|
|
|
CMAKE_BUILD_TYPE="RelWithDebInfo" /* we build out libraries every time in release mode! (Performance improve) */
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh './attach_modules.sh'
|
|
|
|
sh 'cd libraries; ./build.sh'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
stage ('build::arm32v7::debug') {
|
|
|
|
when {
|
|
|
|
expression { params.target == "arm32v7_debug" }
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage ('build::amd64::debug::build') {
|
|
|
|
environment {
|
|
|
|
TEASPEAK_BUILD_TYPE="Debug"
|
|
|
|
CMAKE_BUILD_TYPE="Debug"
|
|
|
|
|
|
|
|
TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=1 -DBUILD_TYPE_NAME='beta'"
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh './build_teaspeak.sh'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage ('build::amd64::debug::deploy') {
|
|
|
|
when {
|
|
|
|
expression { params.deploy_build }
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/arm32v7_debug'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage ('build::arm32v7::release') {
|
|
|
|
when {
|
|
|
|
expression { params.target == "arm32v7_release" }
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage ('build::arm32v7::release::build') {
|
|
|
|
environment {
|
|
|
|
TEASPEAK_BUILD_TYPE="Release"
|
|
|
|
CMAKE_BUILD_TYPE="RelWithDebInfo"
|
|
|
|
|
|
|
|
TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=1 -DBUILD_TYPE_NAME='beta'"
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh './build_teaspeak.sh'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage ('build::arm32v7::release::deploy') {
|
|
|
|
when {
|
|
|
|
expression { params.deploy_build }
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/arm32v7_optimized'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage ('build::arm32v7::stable') {
|
|
|
|
when {
|
|
|
|
expression { params.target == "arm32v7_stable" }
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage ('build::arm32v7::stable::build') {
|
|
|
|
environment {
|
|
|
|
TEASPEAK_BUILD_TYPE="Release"
|
|
|
|
CMAKE_BUILD_TYPE="RelWithDebInfo"
|
|
|
|
|
|
|
|
TEASPEAK_DEPLOY_TYPE_SPECIFIER="-DBUILD_TYPE=0 -DBUILD_TYPE_NAME=''"
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh './build_teaspeak.sh'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage ('build::arm32v7::stable::deploy') {
|
|
|
|
when {
|
|
|
|
expression { params.deploy_build }
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/arm32v7_stable'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-08-09 15:58:53 -04:00
|
|
|
}
|
2018-08-08 15:53:18 -04:00
|
|
|
}
|