Updated jenkins file

This commit is contained in:
WolverinDEV 2018-08-09 21:48:51 +02:00
parent a30fbc66a0
commit 4656a84103

145
Jenkinsfile vendored
View File

@ -1,87 +1,92 @@
pipeline { pipeline {
agent any agent any
steps {
parallel {
stage ('x86') {
agent {
label 'linux && x84 && teaspeak'
}
environment { stages {
//General flags stage ('build') {
CXX_FLAGS = '' steps {
C_FLAGS = '' parallel {
stage ('x86') {
agent {
label 'linux && x84 && teaspeak'
}
//CMake specific flags environment {
CMAKE_OPTIONS = '' //General flags
CMAKE_MAKE_OPTIONS = '' CXX_FLAGS = ''
C_FLAGS = ''
//Make specific flags //CMake specific flags
MAKE_OPTIONS = '' CMAKE_OPTIONS = ''
} CMAKE_MAKE_OPTIONS = ''
//Make specific flags
MAKE_OPTIONS = ''
}
stages { stages {
stage ('Initialize libraries') { stage ('Initialize libraries') {
steps { steps {
sh 'apt-get update' sh 'apt-get update'
sh 'git submodule update --init --remote --recursive' sh 'git submodule update --init --remote --recursive'
sh 'git submodule update --merge' sh 'git submodule update --merge'
sh './attach_modules.sh' sh './attach_modules.sh'
sh 'cd libraries; ./build.sh' sh 'cd libraries; ./build.sh'
}
}
stage ('Build TeaSpeak') {
steps {
sh './build_teaspeak.sh'
}
}
stage ('Deploy') {
steps {
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/x84'
}
}
} }
} }
stage ('Build TeaSpeak') {
steps { stage ('amd64') {
sh './build_teaspeak.sh' agent {
label 'linux && amd64 && teaspeak'
} }
}
stage ('Deploy') { environment {
steps { //General flags
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/x84' CXX_FLAGS = ''
C_FLAGS = ''
//CMake specific flags
CMAKE_OPTIONS = ''
CMAKE_MAKE_OPTIONS = ''
//Make specific flags
MAKE_OPTIONS = ''
} }
}
}
}
stage ('amd64') {
agent {
label 'linux && amd64 && teaspeak'
}
environment {
//General flags
CXX_FLAGS = ''
C_FLAGS = ''
//CMake specific flags
CMAKE_OPTIONS = ''
CMAKE_MAKE_OPTIONS = ''
//Make specific flags
MAKE_OPTIONS = ''
}
stages { stages {
stage ('Initialize libraries') { stage ('Initialize libraries') {
steps { steps {
sh 'apt-get update' sh 'apt-get update'
sh 'git submodule update --init --remote --recursive' sh 'git submodule update --init --remote --recursive'
sh 'git submodule update --merge' sh 'git submodule update --merge'
sh './attach_modules.sh' sh './attach_modules.sh'
sh 'cd libraries; ./build.sh' sh 'cd libraries; ./build.sh'
} }
} }
stage ('Build TeaSpeak') { stage ('Build TeaSpeak') {
steps { steps {
sh './build_teaspeak.sh' sh './build_teaspeak.sh'
} }
} }
stage ('Deploy') { stage ('Deploy') {
steps { steps {
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/x84' sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/x84'
}
}
} }
} }
} }