2021-10-25 14:59:16 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2021-10-26 20:30:22 +02:00
|
|
|
environment {
|
|
|
|
BUILDDIR = 'build-unittests'
|
|
|
|
}
|
2021-10-25 14:59:16 +02:00
|
|
|
stages {
|
2021-10-26 20:30:22 +02:00
|
|
|
stage('Configure') {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
dir 'automation'
|
|
|
|
additionalBuildArgs '--no-cache'
|
|
|
|
reuseNode true
|
|
|
|
}
|
|
|
|
}
|
2021-10-25 14:59:16 +02:00
|
|
|
steps {
|
2021-10-26 20:30:22 +02:00
|
|
|
sh 'rm -rf $BUILDDIR'
|
|
|
|
dir($BUILDDIR) {
|
|
|
|
sh 'cmake -DFSFW_OSAL=host -DFSFW_BUILD_UNITTESTS=ON ..'
|
|
|
|
}
|
2021-10-25 14:59:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build') {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
dir 'automation'
|
|
|
|
reuseNode true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2021-10-26 20:30:22 +02:00
|
|
|
dir($BUILDDIR) {
|
2021-10-25 14:59:16 +02:00
|
|
|
sh 'cmake --build . -j'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Unittests') {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
dir 'automation'
|
|
|
|
reuseNode true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2021-10-26 20:30:22 +02:00
|
|
|
dir($BUILDDIR) {
|
2021-10-25 14:59:16 +02:00
|
|
|
sh 'cmake --build . -- fsfw-tests_coverage -j'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|