Added options to toggle the different targets.

This commit is contained in:
Patrick 2023-06-18 20:18:01 +02:00
parent 5c6a3b52ad
commit 8a0412f396

9
Jenkinsfile vendored
View File

@ -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,11 +35,17 @@ pipeline {
}
stage('Build Linux GCC') {
steps {
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') {
steps {
archiveArtifacts artifacts: 'bin/*',