added jenkins integration

This commit is contained in:
2021-10-25 14:59:16 +02:00
parent 0e653378c3
commit 19f9b0280c
2 changed files with 46 additions and 0 deletions

38
automation/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,38 @@
pipeline {
agent any
stages {
stage('Clean') {
steps {
sh 'rm -rf build-unittests'
}
}
stage('Build') {
agent {
dockerfile {
dir 'automation'
additionalBuildArgs '--no-cache'
reuseNode true
}
}
steps {
dir('build-unittests') {
sh 'cmake -DFSFW_OSAL=host -DFSFW_BUILD_UNITTESTS=ON ..'
sh 'cmake --build . -j'
}
}
}
stage('Unittests') {
agent {
dockerfile {
dir 'automation'
reuseNode true
}
}
steps {
dir('build-unittests') {
sh 'cmake --build . -- fsfw-tests_coverage -j'
}
}
}
}
}