【发布时间】:2019-05-15 19:12:29
【问题描述】:
我有以下 Jenkinsfile:
pipeline{
stages
{
stage ("Compile Everything") {/**/} // Code coverage flags turned on
// Stashes compiled test binaries.
stage ("Parallel Tests"){
parallel{
stage ("Run Tests A-L") {/**/} // These stages unstash and run groups of tests,
stage ("Run Tests L-Z") {/**/} // causing coverage files to be created.
// I analyze those coverage files via
// gcovr and stash the results as xml.
}
}
stage ("Combine and Publish Coverage") {/**/} // Here I can unstash all of the xml
// code coverage files, but don't know
// how to combine them.
}
}
在最后阶段,“合并和发布覆盖率”是否可以合并 gcovr 创建的所有 xml 文件?
有没有人完全解决了并行测试并以另一种方式组合覆盖结果的问题?
【问题讨论】:
标签: jenkins sonarqube gcov jenkins-declarative-pipeline