Updated jenkins file

This commit is contained in:
WolverinDEV 2018-08-09 21:47:53 +02:00
parent a55770af7d
commit a30fbc66a0

133
Jenkinsfile vendored
View File

@ -1,92 +1,87 @@
pipeline { pipeline {
agent any agent any
stages { steps {
stage ('building') { parallel {
steps { stage ('x86') {
echo "Hello World" agent {
} label 'linux && x84 && teaspeak'
stages { }
stage ('x86') {
agent {
label 'linux && x84 && teaspeak'
}
environment { environment {
//General flags //General flags
CXX_FLAGS = '' CXX_FLAGS = ''
C_FLAGS = '' C_FLAGS = ''
//CMake specific flags //CMake specific flags
CMAKE_OPTIONS = '' CMAKE_OPTIONS = ''
CMAKE_MAKE_OPTIONS = '' CMAKE_MAKE_OPTIONS = ''
//Make specific flags //Make specific flags
MAKE_OPTIONS = '' 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 { stage ('Build TeaSpeak') {
sh './build_teaspeak.sh' steps {
} sh './build_teaspeak.sh'
} }
stage ('Deploy') { }
steps { stage ('Deploy') {
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/x84' steps {
} sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/x84'
} }
} }
} }
}
stage ('amd64') {
agent {
label 'linux && amd64 && teaspeak'
}
environment { stage ('amd64') {
//General flags agent {
CXX_FLAGS = '' label 'linux && amd64 && teaspeak'
C_FLAGS = '' }
//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 { stage ('Build TeaSpeak') {
sh './build_teaspeak.sh' steps {
} sh './build_teaspeak.sh'
} }
stage ('Deploy') { }
steps { stage ('Deploy') {
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/x84' steps {
} sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/x84'
} }
} }
} }