Uploading jacoco report via TeamCity service message by a Gradle 4.5 task does not display the report on Build Log correctly
With Gradle 4.5, I have this gradle task:
task uploadJacocoTestReport {
doLast {
println "##teamcity[jacocoReport dataPath='build/jacoco/jacocoTest.exec' " +
"includes='com.my.package.*' " +
"excludes='com.my.package.config.* " +
"com.my.package.MyApplication*' " +
"classpath='build/classes/main']"
}
}
On TeamCity Gradle step, I invoke this and the coverage report does not appear on the Build Log page. This way used to work with Gradle 3.5 however. What do I need to change?
Please sign in to leave a comment.
Hi,
May I ask you to open a request in our issue tracker? This looks like an issue with gradle, but we would probably need to investigate this deeper than we can do in the forum thread.
Could you check whether the doLast block is actually being called? Usually service messages are consumed, so they can disappear from the build log, but you could add a control println printing some other information and see whether it does come up on the log.
HI @Denis Lapuente,
I added
That appears in the build log so the task is being called.
How do I raise that request? Or could you help me do it?
Thank you
Quang