Updated Jenkinsfile
This commit is contained in:
parent
b67feb20e1
commit
b9165d89ef
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
@ -31,6 +31,10 @@ pipeline {
|
||||
|
||||
stages {
|
||||
stage ('Initialize libraries') {
|
||||
when {
|
||||
expression { params.build_libraries }
|
||||
}
|
||||
|
||||
steps {
|
||||
sh 'apt-get update'
|
||||
sh 'git reset --hard origin/master; git submodule update --init --remote --recursive --force'
|
||||
@ -39,22 +43,31 @@ pipeline {
|
||||
sh 'cd libraries; ./build.sh'
|
||||
}
|
||||
}
|
||||
stage ('Build TeaSpeak') {
|
||||
|
||||
|
||||
stage ('Build TeaSpeak Debug') {
|
||||
environment {
|
||||
TEASPEAK_BUILD_TYPE="Debug"
|
||||
}
|
||||
|
||||
stages {
|
||||
stage ('build') {
|
||||
steps {
|
||||
sh './build_teaspeak.sh'
|
||||
}
|
||||
}
|
||||
stage ('Deploy') {
|
||||
stage ('deploy') {
|
||||
when {
|
||||
expression { params.deploy_build }
|
||||
}
|
||||
steps {
|
||||
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/x86'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage ('amd64') {
|
||||
agent {
|
||||
@ -91,6 +104,8 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage ('Build TeaSpeak') {
|
||||
parallel {
|
||||
stage ('Build TeaSpeak Debug') {
|
||||
environment {
|
||||
TEASPEAK_BUILD_TYPE="Debug"
|
||||
@ -104,7 +119,7 @@ pipeline {
|
||||
}
|
||||
stage ('deploy') {
|
||||
when {
|
||||
expression { params.deploy_build == true }
|
||||
expression { params.deploy_build }
|
||||
}
|
||||
steps {
|
||||
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/amd64'
|
||||
@ -115,7 +130,7 @@ pipeline {
|
||||
|
||||
stage ('Build TeaSpeak Release') {
|
||||
when {
|
||||
expression { params.build_optimized == true }
|
||||
expression { params.build_optimized }
|
||||
}
|
||||
|
||||
environment {
|
||||
@ -143,4 +158,6 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user