Updated jenkins file

This commit is contained in:
WolverinDEV 2018-08-09 21:53:52 +02:00
parent f25a00e64d
commit ef876f6bd2

92
Jenkinsfile vendored
View File

@ -1,89 +1,31 @@
pipeline { pipeline {
agent any agent any
stages { stages {
stage ('build') { stage('build and deploy') {
parallel { parallel {
stage ('x86') { stage('Branch A') {
agent { agent any
label 'linux && x84 && teaspeak' steps {
echo "On Branch A"
} }
environment {
//General flags
CXX_FLAGS = ''
C_FLAGS = ''
//CMake specific flags
CMAKE_OPTIONS = ''
CMAKE_MAKE_OPTIONS = ''
//Make specific flags
MAKE_OPTIONS = ''
} }
stage('Branch B') {
agent any
steps {
echo "On Branch B"
}
}
stage('Branch C') {
agent any
stages { stages {
stage ('Initialize libraries') { stage('Nested 1') {
steps { steps {
sh 'apt-get update' echo "In stage Nested 1 within Branch C"
sh 'git submodule update --init --remote --recursive'
sh 'git submodule update --merge'
sh './attach_modules.sh'
sh 'cd libraries; ./build.sh'
} }
} }
stage ('Build TeaSpeak') { stage('Nested 2') {
steps { steps {
sh './build_teaspeak.sh' echo "In stage Nested 2 within Branch C"
}
}
stage ('Deploy') {
steps {
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/x84'
}
}
}
}
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 {
stage ('Initialize libraries') {
steps {
sh 'apt-get update'
sh 'git submodule update --init --remote --recursive'
sh 'git submodule update --merge'
sh './attach_modules.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'
} }
} }
} }