我希望Jacoco插件在Jenkins构建报告上发布CodeCoverage,我已经准备好了工作阶段
stage('JaCoCo') {
sh './gradlew testProdDebugUnitTestCoverage'
jacoco(execPattern: '**/build/jacoco/testProdDebugUnitTest.exec', classPattern: '**/build/tmp/kotlin-classes/prodDebug', sourcePattern: '**/src/main/kotlin')
}
然而,当本地生成的报告显示8%时,我仍然得到0%