Updated jenkins file
This commit is contained in:
parent
39e8872dd7
commit
b80b6dfd58
30
Jenkinsfile
vendored
30
Jenkinsfile
vendored
@ -1,5 +1,9 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
|
parameters {
|
||||||
|
booleanParam(defaultValue: true, description: 'Enabled/disables the building of an optimized build', name: 'build_optimized')
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage ('build') {
|
stage ('build') {
|
||||||
@ -34,6 +38,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ('Build TeaSpeak') {
|
stage ('Build TeaSpeak') {
|
||||||
|
environment {
|
||||||
|
TEASPEAK_BUILD_TYPE="Debug"
|
||||||
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
sh './build_teaspeak.sh'
|
sh './build_teaspeak.sh'
|
||||||
}
|
}
|
||||||
@ -76,14 +84,30 @@ pipeline {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ('Build TeaSpeak') {
|
|
||||||
|
stage ('Build TeaSpeak Debug') {
|
||||||
|
environment {
|
||||||
|
TEASPEAK_BUILD_TYPE="Debug"
|
||||||
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
sh './build_teaspeak.sh'
|
sh './build_teaspeak.sh'
|
||||||
|
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/amd64'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ('Deploy') {
|
|
||||||
|
stage ('Build TeaSpeak Release') {
|
||||||
|
when {
|
||||||
|
expression { params.build_optimized }
|
||||||
|
}
|
||||||
|
|
||||||
|
environment {
|
||||||
|
TEASPEAK_BUILD_TYPE="Release"
|
||||||
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/amd64'
|
sh './build_teaspeak.sh'
|
||||||
|
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/amd64_optimized'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user