From 8a0412f3962c650aefaa07aafc69189b575b267b Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Sun, 18 Jun 2023 20:18:01 +0200 Subject: [PATCH] Added options to toggle the different targets. --- Jenkinsfile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0d150e7..b0e047a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,6 +8,9 @@ pipeline { parameters { booleanParam(name: 'CLEAN', defaultValue: false, description: 'Clean build') + booleanParam(name: 'BUILD_EDITOR', defaultValue: true, description: 'Build the editor binary') + booleanParam(name: 'BUILD_DEBUG_TEMPLATES', defaultValue: true, description: 'Build templates in debug mode.') + booleanParam(name: 'BUILD_RELEASE_TEMPLATES', defaultValue: true, description: 'Build templates in release mode.') string(name: 'REMOTE', defaultValue: 'https://github.com/godotengine/godot.git', description: 'Repository to build from') string(name: 'BRANCH', defaultValue: '*/master') } @@ -32,9 +35,15 @@ pipeline { } stage('Build Linux GCC') { steps { - sh 'scons -j8 platform=linuxbsd debug_symbols=yes use_lto=yes' - sh 'scons -j8 platform=linuxbsd target=template_release use_lto=yes' - sh 'scons -j8 platform=linuxbsd target=template_debug use_lto=yes' + if (BUILD_EDITOR) { + sh 'scons -j8 platform=linuxbsd debug_symbols=yes use_lto=yes' + } + if (BUILD_DEBUG_TEMPLATES) { + sh 'scons -j8 platform=linuxbsd target=template_release use_lto=yes' + } + if (BUILD_RELEASE_TEMPLATES) { + sh 'scons -j8 platform=linuxbsd target=template_debug use_lto=yes' + } } } stage('Archive') {