From e50293215872b6bc8567b229eaffbcfe50ada946 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 | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0d150e7..6deaeb7 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') } @@ -30,10 +33,27 @@ pipeline { sh 'scons platform=linuxbsd -c' } } - stage('Build Linux GCC') { + stage('Build Linux Editor') { + when { + expression { params.BUILD_EDITOR } + } steps { sh 'scons -j8 platform=linuxbsd debug_symbols=yes use_lto=yes' + } + } + stage('Build Linux Debug Templates') { + when { + expression { params.BUILD_DEBUG_TEMPLATES } + } + steps { sh 'scons -j8 platform=linuxbsd target=template_release use_lto=yes' + } + } + stage('Build Linux Release Templates') { + when { + expression { params.BUILD_EDITOR } + } + steps { sh 'scons -j8 platform=linuxbsd target=template_debug use_lto=yes' } }