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