From 24a32f2555432afce746eda9f12b6e8ddb7d8835 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 24 Nov 2018 16:26:52 +0100 Subject: [PATCH] Updating file --- Jenkinsfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 {