JaCoCo report generation failed. Exit code: 1
Hello,
I'm trying to generate the code coverage report with JaCoCo, but the process is failing with the output below. Do you guys what could be the issue?
I'm expecting to the see the code coverage report on my project, like happens for my .NET builds with dotCover.
Any help is welcome, thanks!
[11:10:38]Step 1/1: Maven Build (Maven) (11s)
[11:10:49]Generating JaCoCo coverage...
[11:10:49]JaCoCo report generation failed. Exit code: 1
[11:10:49]Publishing JaCoCo coverage...
[11:10:49]Publishing artifacts
[11:10:49]Collecting files to publish: [C:\Program Files\TeamCity\buildAgent\temp\buildTmp\JACOCO5073051836485611124coverage\jacoco.exec=>.teamcity/coverage_jacoco]
[11:10:49]Publishing using [WebPublisher]
[11:10:49]Publishing using [ArtifactsCachePublisher]
[11:10:49]Publishing artifacts
[11:10:49]Collecting files to publish: [C:\Program Files\TeamCity\buildAgent\temp\buildTmp\JACOCO2745843187687419473coverage\jacoco.log=>.teamcity/coverage_jacoco]
[11:10:49]Publishing using [WebPublisher]
[11:10:49]Publishing using [ArtifactsCachePublisher]
[11:10:49]Publishing artifacts
[11:10:49]Collecting files to publish: [C:\Program Files\TeamCity\buildAgent\temp\buildTmp\JACOCO1952266855505662425coverage\coverage.params=>.teamcity/coverage_jacoco]
[11:10:49]Publishing using [WebPublisher]
[11:10:49]Publishing using [ArtifactsCachePublisher]
[11:10:49]Publishing internal artifacts
[11:10:49]Sending using WebPublisher
[11:10:49]Sending using ArtifactsCachePublisher
[11:10:49]Build finished
Please sign in to leave a comment.
Hello,
How did you configure Code Coverage section of build step, can you please attach screenshot? Also please provide us with jacoco.log, jacoco.exec (hidden artifacts) and build log files.
Hi Alina,
I've attached the configuration for my code coverage configuration and the files generated during the build.
Thanks
Attachment(s):
coverage.params.zip
jacoco.log.zip
jacoco.exec.zip
JaCoCo.PNG
Hi,
Thank you for provided information. We found out that there is an issue with parsing path with spaces. Please vote for http://youtrack.jetbrains.com/issue/TW-36787.
I'll vote, thanks for the update Alina!