I have a Gradle task to upload jacoco coverage to TeamCity (following TeamCity documentation here: Importing JaCoCo coverage data to TeamCity):
task uploadJacocoTestReport {
doLast {
println "##teamcity[jacocoReport dataPath='build/jacoco/jacocoTest.exec' " +
"includes='com.mypackage.*' " +
"classpath='build/classes/main']"
}
}
If I use Gradle 3.5
, TeamCity build is able to display CodeCoverage report in the build log. But when I switch to Gradle 4.5
, the Code Coverage section no longer appears in the build log. How do I upload jacoco report with Gradle 4.5?
TeamCity version 10.0.5 (build 42677)
jacoco version 0.8.0