2017-04-23 18:10:40 +02:00
|
|
|
pipeline {
|
2017-04-25 09:58:11 +02:00
|
|
|
agent none
|
2017-04-23 18:10:40 +02:00
|
|
|
stages {
|
2017-04-25 09:58:11 +02:00
|
|
|
stage('Compile') {
|
2017-04-23 18:10:40 +02:00
|
|
|
steps {
|
|
|
|
parallel(
|
2017-04-25 09:58:11 +02:00
|
|
|
"OpenBSD 6.1": {
|
|
|
|
node('openbsd-6.1') {
|
2017-04-27 19:53:31 +02:00
|
|
|
sh 'git config --global user.name "jenkins@kakwa.fr"'
|
|
|
|
sh 'git config --global user.email "jenkins@kakwa.fr"'
|
2017-04-25 09:58:11 +02:00
|
|
|
git 'https://github.com/kakwa/uts-server'
|
2017-04-27 20:19:49 +02:00
|
|
|
sh 'git clean -fdx'
|
|
|
|
sh 'export CC=/usr/local/bin/egcc;export CXX=/usr/local/bin/ec++; cmake . -DBUNDLE_CIVETWEB=ON'
|
2017-04-27 20:23:29 +02:00
|
|
|
sh 'export CC=/usr/local/bin/egcc;export CXX=/usr/local/bin/ec++; make'
|
2017-04-25 09:58:11 +02:00
|
|
|
}
|
2017-04-23 18:10:40 +02:00
|
|
|
},
|
2017-04-25 09:58:11 +02:00
|
|
|
"FreeBSD 11": {
|
|
|
|
node('freebsd-11') {
|
2017-04-27 19:53:31 +02:00
|
|
|
sh 'git config --global user.email "jenkins@kakwa.fr"'
|
|
|
|
sh 'git config --global user.name "jenkins@kakwa.fr"'
|
2017-04-25 09:58:11 +02:00
|
|
|
git 'https://github.com/kakwa/uts-server'
|
2017-04-27 20:19:49 +02:00
|
|
|
sh 'git clean -fdx'
|
2017-04-25 09:58:11 +02:00
|
|
|
sh 'cmake . -DBUNDLE_CIVETWEB=ON'
|
|
|
|
sh 'make'
|
|
|
|
}
|
2017-04-23 18:10:40 +02:00
|
|
|
},
|
2017-04-25 09:58:11 +02:00
|
|
|
"CentOS 7": {
|
|
|
|
node('centos-7') {
|
2017-04-27 19:53:31 +02:00
|
|
|
sh 'git config --global user.email "jenkins@kakwa.fr"'
|
|
|
|
sh 'git config --global user.name "jenkins@kakwa.fr"'
|
2017-04-25 09:58:11 +02:00
|
|
|
git 'https://github.com/kakwa/uts-server'
|
2017-04-27 20:19:49 +02:00
|
|
|
sh 'git clean -fdx'
|
2017-04-27 20:58:05 +02:00
|
|
|
sh 'export CXX=/usr/bin/clang++; export CC=/usr/bin/clang; cmake . -DBUNDLE_CIVETWEB=ON'
|
|
|
|
sh 'export CXX=/usr/bin/clang++; export CC=/usr/bin/clang; make'
|
2017-04-25 09:58:11 +02:00
|
|
|
}
|
2017-04-25 01:12:04 +02:00
|
|
|
},
|
2017-04-25 09:58:11 +02:00
|
|
|
"Debian 8": {
|
|
|
|
node('debian-8') {
|
2017-04-27 19:53:31 +02:00
|
|
|
sh 'git config --global user.email "jenkins@kakwa.fr"'
|
|
|
|
sh 'git config --global user.name "jenkins@kakwa.fr"'
|
2017-04-25 09:58:11 +02:00
|
|
|
git 'https://github.com/kakwa/uts-server'
|
2017-04-27 20:19:49 +02:00
|
|
|
sh 'git clean -fdx'
|
2017-04-25 09:58:11 +02:00
|
|
|
sh 'cmake . -DBUNDLE_CIVETWEB=ON'
|
|
|
|
sh 'make'
|
|
|
|
}
|
2017-04-23 18:10:40 +02:00
|
|
|
}
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-04-25 09:58:11 +02:00
|
|
|
}
|