Server-Root/Jenkinsfile

90 lines
1.7 KiB
Plaintext
Raw Normal View History

2018-08-08 21:53:18 +02:00
pipeline {
2018-08-09 21:29:00 +02:00
agent any
2018-08-09 21:39:07 +02:00
stages {
2018-08-09 21:35:28 +02:00
stage ('x86') {
agent {
label 'linux && x84 && teaspeak'
}
2018-08-08 21:53:18 +02:00
2018-08-09 21:35:28 +02:00
environment {
2018-08-09 21:45:31 +02:00
//General flags
2018-08-09 21:35:28 +02:00
CXX_FLAGS = ''
C_FLAGS = ''
2018-08-09 12:42:27 +02:00
2018-08-09 21:45:31 +02:00
//CMake specific flags
2018-08-09 21:35:28 +02:00
CMAKE_OPTIONS = ''
CMAKE_MAKE_OPTIONS = ''
2018-08-09 12:42:27 +02:00
2018-08-09 21:45:31 +02:00
//Make specific flags
2018-08-09 21:35:28 +02:00
MAKE_OPTIONS = ''
}
2018-08-09 21:29:00 +02:00
2018-08-09 21:35:28 +02:00
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'
}
2018-08-09 21:33:58 +02:00
}
2018-08-09 21:35:28 +02:00
stage ('Build TeaSpeak') {
steps {
sh './build_teaspeak.sh'
}
2018-08-09 21:33:58 +02:00
}
2018-08-09 21:35:28 +02:00
stage ('Deploy') {
steps {
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/x84'
}
2018-08-09 21:33:58 +02:00
}
2018-08-09 21:33:07 +02:00
}
2018-08-09 21:29:00 +02:00
}
2018-08-09 21:35:28 +02:00
stage ('amd64') {
agent {
label 'linux && amd64 && teaspeak'
}
2018-08-09 21:29:00 +02:00
2018-08-09 21:35:28 +02:00
environment {
2018-08-09 21:45:31 +02:00
//General flags
2018-08-09 21:35:28 +02:00
CXX_FLAGS = ''
C_FLAGS = ''
2018-08-09 21:29:00 +02:00
2018-08-09 21:45:31 +02:00
//CMake specific flags
2018-08-09 21:35:28 +02:00
CMAKE_OPTIONS = ''
CMAKE_MAKE_OPTIONS = ''
2018-08-09 21:29:00 +02:00
2018-08-09 21:45:31 +02:00
//Make specific flags
2018-08-09 21:35:28 +02:00
MAKE_OPTIONS = ''
}
2018-08-09 21:29:00 +02:00
2018-08-09 21:35:28 +02:00
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'
2018-08-09 21:29:00 +02:00
2018-08-09 21:35:28 +02:00
}
2018-08-09 21:33:58 +02:00
}
2018-08-09 21:35:28 +02:00
stage ('Build TeaSpeak') {
steps {
sh './build_teaspeak.sh'
}
2018-08-09 21:33:58 +02:00
}
2018-08-09 21:35:28 +02:00
stage ('Deploy') {
steps {
2018-08-09 21:39:07 +02:00
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/x84'
2018-08-09 21:35:28 +02:00
}
2018-08-09 21:33:58 +02:00
}
2018-08-09 21:33:07 +02:00
}
2018-08-09 21:29:00 +02:00
}
2018-08-09 00:35:11 +02:00
}
2018-08-08 21:53:18 +02:00
}