Updated jenkins file
This commit is contained in:
parent
ef876f6bd2
commit
1daf1ee8fe
126
Jenkinsfile
vendored
126
Jenkinsfile
vendored
@ -1,36 +1,94 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
|
||||||
stage('build and deploy') {
|
stages {
|
||||||
parallel {
|
stage ('build') {
|
||||||
stage('Branch A') {
|
parallel {
|
||||||
agent any
|
stage ('x86') {
|
||||||
steps {
|
agent {
|
||||||
echo "On Branch A"
|
label 'linux && x84 && teaspeak'
|
||||||
}
|
}
|
||||||
}
|
|
||||||
stage('Branch B') {
|
environment {
|
||||||
agent any
|
//General flags
|
||||||
steps {
|
CXX_FLAGS = ''
|
||||||
echo "On Branch B"
|
C_FLAGS = ''
|
||||||
}
|
|
||||||
}
|
//CMake specific flags
|
||||||
stage('Branch C') {
|
CMAKE_OPTIONS = ''
|
||||||
agent any
|
CMAKE_MAKE_OPTIONS = ''
|
||||||
stages {
|
|
||||||
stage('Nested 1') {
|
//Make specific flags
|
||||||
steps {
|
MAKE_OPTIONS = ''
|
||||||
echo "In stage Nested 1 within Branch C"
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Nested 2') {
|
stages {
|
||||||
steps {
|
stage ('Initialize libraries') {
|
||||||
echo "In stage Nested 2 within Branch C"
|
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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user