tweaking Jenkinsfile
Some checks failed
fsfw/fsfw/pipeline/head There was a failure building this commit

This commit is contained in:
Ulrich Mohr 2021-10-26 20:30:22 +02:00
parent da19764232
commit 3c41472649

View File

@ -1,12 +1,10 @@
pipeline {
agent any
environment {
BUILDDIR = 'build-unittests'
}
stages {
stage('Clean') {
steps {
sh 'rm -rf build-unittests'
}
}
stage('Build') {
stage('Configure') {
agent {
dockerfile {
dir 'automation'
@ -15,8 +13,21 @@ pipeline {
}
}
steps {
dir('build-unittests') {
sh 'rm -rf $BUILDDIR'
dir($BUILDDIR) {
sh 'cmake -DFSFW_OSAL=host -DFSFW_BUILD_UNITTESTS=ON ..'
}
}
}
stage('Build') {
agent {
dockerfile {
dir 'automation'
reuseNode true
}
}
steps {
dir($BUILDDIR) {
sh 'cmake --build . -j'
}
}
@ -29,7 +40,7 @@ pipeline {
}
}
steps {
dir('build-unittests') {
dir($BUILDDIR) {
sh 'cmake --build . -- fsfw-tests_coverage -j'
}
}