mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-11 04:40:59 -06:00
fix: Publish clover coverage in CI: "Invalid input stream" (OD-2579)
This commit is contained in:
parent
db28406eeb
commit
64e83d995b
@ -57,6 +57,8 @@ public class CloverReportParser {
|
|||||||
Map<String, Map<Integer, CoverageStatus>> coverageStatuses = new HashMap<>();
|
Map<String, Map<Integer, CoverageStatus>> coverageStatuses = new HashMap<>();
|
||||||
for (Element fileElement : fileElements) {
|
for (Element fileElement : fileElements) {
|
||||||
var filePath = fileElement.attributeValue("path");
|
var filePath = fileElement.attributeValue("path");
|
||||||
|
if (filePath == null)
|
||||||
|
filePath = fileElement.attributeValue("name");
|
||||||
String blobPath = build.getBlobPath(filePath);
|
String blobPath = build.getBlobPath(filePath);
|
||||||
if (blobPath != null) {
|
if (blobPath != null) {
|
||||||
var metricsElement = fileElement.element("metrics");
|
var metricsElement = fileElement.element("metrics");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user