Mixed Project Java/Scala fails

I have a large Maven (Jacoco) project with a few Spark jobs written in Scala, running this from Jenkins
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Java $(find */jacoco.xml -printf '-r %p ')

With this error:

2021-03-29 14:13:09.977Z  info [ReportRules] Parsing coverage data from: /var/lib/jenkins/jobs/occurrence-dev/workspace/target/site/jacoco-it/jacoco.xml ...  - (ReportRules.scala:43)
2021-03-29 14:13:09.982Z error [CodacyCoverageReporter] Could not parse report, unrecognized report format (tried: Cobertura, Jacoco, Clover, OpenCover, DotCover, PHPUnit, LCOV)  - (CodacyCoverageReporter.scala:25)

@fmendezh Thanks for reporting this!

Can you please tell me the organization/repo to which you are trying to upload the coverage and the branch? Also, can you please add here the report you are trying to upload so I can check this up?

1 Like