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