Added options to toggle the different targets.
This commit is contained in:
parent
5c6a3b52ad
commit
8a0412f396
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -8,6 +8,9 @@ pipeline {
|
|||||||
|
|
||||||
parameters {
|
parameters {
|
||||||
booleanParam(name: 'CLEAN', defaultValue: false, description: 'Clean build')
|
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: 'REMOTE', defaultValue: 'https://github.com/godotengine/godot.git', description: 'Repository to build from')
|
||||||
string(name: 'BRANCH', defaultValue: '*/master')
|
string(name: 'BRANCH', defaultValue: '*/master')
|
||||||
}
|
}
|
||||||
@ -32,9 +35,15 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Build Linux GCC') {
|
stage('Build Linux GCC') {
|
||||||
steps {
|
steps {
|
||||||
sh 'scons -j8 platform=linuxbsd debug_symbols=yes use_lto=yes'
|
if (BUILD_EDITOR) {
|
||||||
sh 'scons -j8 platform=linuxbsd target=template_release use_lto=yes'
|
sh 'scons -j8 platform=linuxbsd debug_symbols=yes use_lto=yes'
|
||||||
sh 'scons -j8 platform=linuxbsd target=template_debug 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') {
|
stage('Archive') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user