Issue importing Jacoco coverage xml

We like to import our jacoco xml into octane to see the test coverage of our junit tests as described here

However the data is not displayed in octane. We are using the following pipeline snippet:

 

publishCodeCoverage jacocoPathPattern: '**/target/coverage-report/coverage-report.xml', lcovPathPattern: '**/lcov.info'

 

 

Jacoco xml (~20Mb size) can be provided if needed.

Jenkins log shows no error:

 

start copying coverage report to build folder, using file patten of **/target/coverage-report/coverage-report.xml Looking for files that match the pattern **/target/coverage-report/coverage-report.xml in root directory Efiliale-Pipeline-Junit-Sonarqube Copying /export/jenkins/workspace/Efiliale-Pipeline-Junit-Sonarqube/jacoco-aggregate/target/coverage-report/coverage-report.xml to /var/lib/jenkins/jenkins1/jobs/Efiliale-Pipeline-Junit-Sonarqube/builds/287/coverage_report0-jacoco.xml Got coverage file content coverage file copied successfully to /var/lib/jenkins/jenkins1/jobs/Efiliale-Pipeline-Junit-Sonarqube/builds/287/coverage_report0-jacoco.xml start copying coverage report to build folder, using file patten of **/lcov.info Looking for files that match the pattern **/lcov.info in root directory Efiliale-Pipeline-Junit-Sonarqube No coverage file that matched the specified pattern was found in workspace

 

Web server result is also fine:

 

10.192.130.60 - - [22/Feb/2021:19:47:00 0100] "PUT /internal-api/shared_spaces/2001/analytics/ci/coverage?ci-server-identity=7b2d19c9-6145-42a1-aed8-c53ec2cdf94d&ci-job-id=Efiliale-Pipeline-Junit-Sonarqube&ci-build-id=287&file-type=JACOCOXML HTTP/1.1" 200 55 "-" "Apache-HttpClient/4.5.10 (Java/11.0.9)"

 

Nullpointer observed while processing the xml file:

 

2021-02-22T19:47:11,466 | ERROR | CID: 618247215947445793a3c12d5 | Global_Time: 2021-02-22T18:47:10.708 | Service: NGA | Thread: CTP Worker on behalf of CICoverageCTP; TID: 708 | System_IP: 127.0.0.2 | Session: | User: | SSID: | WSID: | Server_Version: 15.1.40.83 | Class: services.CICoverageCTP | client log: | failed to process ci coverage task request: com.hp.mqm.ps.platformservices.cluster.tasks.ClusterTaskWrapperHelper$1@2827438c java.lang.NullPointerException: null at com.hp.mqm.analytics.common.serializers.CICoverageJacocoXmlConverter.convert(CICoverageJacocoXmlConverter.java:39) ~[mqm-analytics-common-impl-15.1.40.83.jar:?] at com.hp.mqm.analytics.common.services.CICoverageServiceImpl.storeCoverageData(CICoverageServiceImpl.java:109) ~[mqm-analytics-common-impl-15.1.40.83.jar:?] at com.hp.mqm.analytics.common.services.CICoverageCTP.doProcessTask(CICoverageCTP.java:52) [mqm-analytics-common-impl-15.1.40.83.jar:?] at com.hp.mqm.ps.platformservices.cluster.tasks.ClusterTaskWrapperHelper.processTask(ClusterTaskWrapperHelper.java:64) [mqm-ps-platform-services-api-15.1.40.83.jar:?] at com.hp.mqm.ps.platformservices.cluster.tasks.ClusterTasksProcessorSimpleWrapper.processTask(ClusterTasksProcessorSimpleWrapper.java:30) [mqm-ps-platform-services-api-15.1.40.83.jar:?] at com.microfocus.octane.cluster.tasks.impl.ClusterTasksProcessorWorker.run(ClusterTasksProcessorWorker.java:86) [cluster-tasks-service-2.6.1.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_275] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_275] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]

 

Product version:
15.1.40.83
Edition:
Enterprise
Build time:
17.11.2020 16:01:33
 
Many thanks for your support,
Alex
Parents Reply Children
No Data