2021-10-25 14:59:16 +02:00
|
|
|
pipeline {
|
2021-10-26 20:30:22 +02:00
|
|
|
environment {
|
2022-07-26 11:14:40 +02:00
|
|
|
BUILDDIR = 'cmake-build-tests'
|
2022-09-13 13:54:23 +02:00
|
|
|
DOCDDIR = 'cmake-build-documentation'
|
2021-10-26 20:30:22 +02:00
|
|
|
}
|
2022-01-31 14:59:45 +01:00
|
|
|
agent {
|
2022-09-13 14:46:12 +02:00
|
|
|
docker {
|
2022-09-23 14:06:28 +02:00
|
|
|
image 'fsfw-ci:d6'
|
2022-09-13 14:46:12 +02:00
|
|
|
args '--network host'
|
|
|
|
}
|
2022-01-31 14:59:45 +01:00
|
|
|
}
|
|
|
|
stages {
|
2022-01-26 15:30:01 +01:00
|
|
|
stage('Clean') {
|
|
|
|
steps {
|
|
|
|
sh 'rm -rf $BUILDDIR'
|
|
|
|
}
|
|
|
|
}
|
2021-10-26 20:58:34 +02:00
|
|
|
stage('Configure') {
|
|
|
|
steps {
|
2021-10-26 20:53:08 +02:00
|
|
|
dir(BUILDDIR) {
|
2022-07-18 14:36:40 +02:00
|
|
|
sh 'cmake -DFSFW_OSAL=host -DFSFW_BUILD_TESTS=ON -DFSFW_CICD_BUILD=ON ..'
|
2021-10-26 20:30:22 +02:00
|
|
|
}
|
2021-10-25 14:59:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2021-10-26 20:47:53 +02:00
|
|
|
dir(BUILDDIR) {
|
2022-03-03 16:03:06 +01:00
|
|
|
sh 'cmake --build . -j4'
|
2021-10-25 14:59:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Unittests') {
|
|
|
|
steps {
|
2021-10-26 20:47:53 +02:00
|
|
|
dir(BUILDDIR) {
|
2022-03-03 16:03:06 +01:00
|
|
|
sh 'cmake --build . -- fsfw-tests_coverage -j4'
|
2021-10-25 14:59:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-27 21:32:40 +02:00
|
|
|
stage('Valgrind') {
|
|
|
|
steps {
|
|
|
|
dir(BUILDDIR) {
|
|
|
|
sh 'valgrind --leak-check=full --error-exitcode=1 ./fsfw-tests'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-09-13 13:54:23 +02:00
|
|
|
stage('Documentation') {
|
2022-09-13 14:20:30 +02:00
|
|
|
when {
|
2022-09-23 14:07:12 +02:00
|
|
|
branch 'mohr/documentation_ci'
|
2022-09-13 14:20:30 +02:00
|
|
|
}
|
2022-09-13 13:54:23 +02:00
|
|
|
steps {
|
|
|
|
dir(DOCDDIR) {
|
|
|
|
sh 'cmake -DFSFW_BUILD_DOCS=ON -DFSFW_OSAL=host ..'
|
|
|
|
sh 'make Sphinx'
|
|
|
|
sshagent(credentials: ['documentation-buildfix']) {
|
2022-09-23 14:06:28 +02:00
|
|
|
sh 'rsync -r --delete docs/sphinx/* buildfix@documentation.irs.uni-stuttgart.de:~/www/fsfw/development'
|
2022-09-13 13:54:23 +02:00
|
|
|
}
|
|
|
|
}
|
2022-09-13 18:14:26 +02:00
|
|
|
dir(BUILDDIR) {
|
|
|
|
sshagent(credentials: ['documentation-buildfix']) {
|
2022-09-23 14:06:28 +02:00
|
|
|
sh 'rsync -r --delete fsfw-tests_coverage/* buildfix@documentation.irs.uni-stuttgart.de:~/www/fsfw/coverage/development'
|
2022-09-13 18:14:26 +02:00
|
|
|
}
|
|
|
|
}
|
2022-09-13 13:54:23 +02:00
|
|
|
}
|
|
|
|
}
|
2022-09-13 14:20:30 +02:00
|
|
|
stage('Master Documentation') {
|
|
|
|
when {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
dir(DOCDDIR) {
|
|
|
|
sh 'cmake -DFSFW_BUILD_DOCS=ON -DFSFW_OSAL=host ..'
|
|
|
|
sh 'make Sphinx'
|
|
|
|
sshagent(credentials: ['documentation-buildfix']) {
|
2022-09-23 14:06:28 +02:00
|
|
|
sh 'rsync -r --delete docs/sphinx/* buildfix@documentation.irs.uni-stuttgart.de:~/www/fsfw/master'
|
2022-09-13 14:20:30 +02:00
|
|
|
}
|
|
|
|
}
|
2022-09-13 18:14:26 +02:00
|
|
|
dir(BUILDDIR) {
|
|
|
|
sshagent(credentials: ['documentation-buildfix']) {
|
2022-09-23 14:06:28 +02:00
|
|
|
sh 'rsync -r --delete fsfw-tests_coverage/* buildfix@documentation.irs.uni-stuttgart.de:~/www/fsfw/coverage/master'
|
2022-09-13 18:14:26 +02:00
|
|
|
}
|
|
|
|
}
|
2022-09-13 14:20:30 +02:00
|
|
|
}
|
|
|
|
}
|
2021-10-25 14:59:16 +02:00
|
|
|
}
|
|
|
|
}
|