diff --git a/Jenkinsfile b/Jenkinsfile index 836fbca..1c7c69b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,6 +5,7 @@ pipeline { booleanParam(defaultValue: false, 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') + choice(choices: ['all', 'x86_debug', 'x64_debug', 'x64_release'], description: 'Which target do you want to build?', name: 'target') } environment { @@ -27,6 +28,9 @@ pipeline { agent { label 'linux && x84 && teaspeak' } + when { + expression { params.target == "" || params.target == "all" || params.target == "x86_debug" } + } stages { stage ('Initialize libraries') { @@ -80,6 +84,9 @@ pipeline { agent { label 'linux && amd64 && teaspeak' } + when { + expression { params.target == "" || params.target == "all" || params.target == "x64_debug" } + } stages { stage ('Initialize libraries') { @@ -128,7 +135,7 @@ pipeline { stage ('Build amd64 Release') { when { - expression { params.build_optimized } + expression { params.target == "all" || params.target == "x64_release" || params.build_optimized } } agent {