Updating file
This commit is contained in:
parent
ce3a26d916
commit
24a32f2555
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -5,6 +5,7 @@ pipeline {
|
|||||||
booleanParam(defaultValue: false, description: 'Enabled/disables the building of an optimized build', name: 'build_optimized')
|
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: 'Build the libraries as well', name: 'build_libraries')
|
||||||
booleanParam(defaultValue: true, description: 'Deploy this build', name: 'deploy_build')
|
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 {
|
environment {
|
||||||
@ -27,6 +28,9 @@ pipeline {
|
|||||||
agent {
|
agent {
|
||||||
label 'linux && x84 && teaspeak'
|
label 'linux && x84 && teaspeak'
|
||||||
}
|
}
|
||||||
|
when {
|
||||||
|
expression { params.target == "" || params.target == "all" || params.target == "x86_debug" }
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage ('Initialize libraries') {
|
stage ('Initialize libraries') {
|
||||||
@ -80,6 +84,9 @@ pipeline {
|
|||||||
agent {
|
agent {
|
||||||
label 'linux && amd64 && teaspeak'
|
label 'linux && amd64 && teaspeak'
|
||||||
}
|
}
|
||||||
|
when {
|
||||||
|
expression { params.target == "" || params.target == "all" || params.target == "x64_debug" }
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage ('Initialize libraries') {
|
stage ('Initialize libraries') {
|
||||||
@ -128,7 +135,7 @@ pipeline {
|
|||||||
|
|
||||||
stage ('Build amd64 Release') {
|
stage ('Build amd64 Release') {
|
||||||
when {
|
when {
|
||||||
expression { params.build_optimized }
|
expression { params.target == "all" || params.target == "x64_release" || params.build_optimized }
|
||||||
}
|
}
|
||||||
|
|
||||||
agent {
|
agent {
|
||||||
|
Loading…
Reference in New Issue
Block a user