As an addition to what Marc said - error message "Unable to read jacoco.exec Caused by: malformed input around byte" typically indicates corrupted file.
On Monday, May 7, 2018 at 1:32:34 PM UTC+2, Marc R. Hoffmann wrote: > > Hi, > > the Sonarqube integration is not maintained here at the JaCoCo project. > Also the error message is not a JaCoCo message. Therefore please contact > Sonarqube directly for this issue. > > Thanks, > -marc > > On 2018-05-07 05:29, [email protected] wrote: > > Hi team, > > Been trying to search for help on this. I have a pipeline that Bazel > > builds a microservice. > > When It comes to code coverage, I get the below failure message from > > Jenkins. > > Can you help me why I'm getting this error, i'm not an expert of > > Jacoco. > > > > Jenkins log: > > 04:44:04.622 INFO: Analysing /tmp/jacoco.exec > > 04:44:05.321 INFO: > > ------------------------------------------------------------------------ > > 04:44:05.321 INFO: EXECUTION FAILURE > > 04:44:05.321 INFO: > > ------------------------------------------------------------------------ > > 04:44:05.322 INFO: Total time: 27.614s > > 04:44:05.630 INFO: Final Memory: 22M/2266M > > 04:44:05.630 INFO: > > ------------------------------------------------------------------------ > > 04:44:05.630 ERROR: Error during SonarQube Scanner execution > > 04:44:05.630 ERROR: Unable to read /tmp/jacoco.exec > > 04:44:05.630 ERROR: Caused by: malformed input around byte 32 > > 04:44:05.630 ERROR: > > 04:44:05.631 ERROR: Re-run SonarQube Scanner using the -X switch to > > enable full debug logging. > > [Pipeline] } > > > > > > > > ## Junit > > java_test( > > name = "SomeClass", > > srcs = [ > > "src/test/java/com/someclass/SomeClass.java", > > ], > > test_class = "com.SomeClassTeat", > > deps = [ > > "SomeTest", > > "@javax_servlet_javax_servlet_api//jar", > > "@org_springframework_spring_test//jar", > > "@org_springframework_spring_web//jar", > > "@org_mockito_mockito_core//jar", > > "@net_bytebuddy_byte_buddy//jar", > > "//commons-api/commons-api-server:CommonsApiServer", > > ], > > > > size = "small", > > jvm_flags = > > ["-javaagent:/tmp/jacocoagent-runtime.jar=destfile=/tmp/jacoco.exec"] > > ) > -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/c2eb3c0d-68b1-4c9c-ad3e-431a6da7f579%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
