2018-08-08 15:53:18 -04:00
|
|
|
pipeline {
|
2018-08-08 15:54:45 -04:00
|
|
|
agent {
|
2018-08-09 07:26:50 -04:00
|
|
|
label 'linux && x84 && teaspeak'
|
2018-08-08 15:53:18 -04:00
|
|
|
}
|
|
|
|
|
2018-08-09 06:42:27 -04:00
|
|
|
environment {
|
|
|
|
/* General flags */
|
2018-08-09 07:26:50 -04:00
|
|
|
CXX_FLAGS = ''
|
|
|
|
C_FLAGS = ''
|
2018-08-09 06:42:27 -04:00
|
|
|
|
|
|
|
/* CMake specific flags */
|
|
|
|
CMAKE_OPTIONS = ''
|
|
|
|
CMAKE_MAKE_OPTIONS = ''
|
|
|
|
|
|
|
|
/* Make specific flags */
|
|
|
|
MAKE_OPTIONS = ''
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-08-08 15:55:36 -04:00
|
|
|
stages {
|
2018-08-08 15:53:18 -04:00
|
|
|
stage ('Initialize libraries') {
|
|
|
|
steps {
|
|
|
|
sh 'apt-get update'
|
|
|
|
sh 'git submodule update --init --remote --recursive'
|
2018-08-08 18:53:02 -04:00
|
|
|
sh 'git submodule update --merge'
|
2018-08-08 15:53:18 -04:00
|
|
|
sh './attach_modules.sh'
|
2018-08-08 16:07:35 -04:00
|
|
|
sh 'cd libraries; ./build.sh'
|
|
|
|
|
2018-08-08 15:53:18 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage ('Build TeaSpeak') {
|
|
|
|
steps {
|
2018-08-08 18:24:33 -04:00
|
|
|
sh './build_teaspeak.sh'
|
2018-08-08 15:53:18 -04:00
|
|
|
}
|
|
|
|
}
|
2018-08-08 18:35:11 -04:00
|
|
|
stage ('Deploy') {
|
|
|
|
steps {
|
2018-08-09 06:42:27 -04:00
|
|
|
sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/x84'
|
2018-08-08 18:35:11 -04:00
|
|
|
}
|
|
|
|
}
|
2018-08-08 15:53:18 -04:00
|
|
|
}
|
|
|
|
}
|