Updated Jenkinsfile

This commit is contained in:
WolverinDEV 2018-11-01 16:28:05 +01:00
parent 79d7e16378
commit b67feb20e1

25
Jenkinsfile vendored
View File

@ -4,6 +4,7 @@ pipeline {
parameters {
booleanParam(defaultValue: true, description: 'Enabled/disables the building of an optimized build', name: 'build_optimized')
booleanParam(defaultValue: true, description: 'Build the libraries as well', name: 'build_libraries')
booleanParam(defaultValue: true, description: 'Deploy this build', name: 'deploy_build')
}
stages {
@ -95,23 +96,43 @@ pipeline {
TEASPEAK_BUILD_TYPE="Debug"
}
stages {
stage ('build') {
steps {
sh './build_teaspeak.sh'
}
}
stage ('deploy') {
when {
expression { params.deploy_build == true }
}
steps {
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/amd64'
}
}
}
}
stage ('Build TeaSpeak Release') {
when {
expression { params.build_optimized }
expression { params.build_optimized == true }
}
environment {
TEASPEAK_BUILD_TYPE="Release"
}
stages {
stage ('build') {
steps {
sh './build_teaspeak.sh'
}
}
stage ('deploy') {
when {
expression { params.deploy_build == true }
}
steps {
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/amd64_optimized'
}
}
@ -121,3 +142,5 @@ pipeline {
}
}
}
}
}