Server-Root/Jenkinsfile

99 lines
1.8 KiB
Plaintext
Raw Normal View History

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