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"]
)