mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-10 20:24:15 -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<>();
|
||||
for (Element fileElement : fileElements) {
|
||||
var filePath = fileElement.attributeValue("path");
|
||||
if (filePath == null)
|
||||
filePath = fileElement.attributeValue("name");
|
||||
String blobPath = build.getBlobPath(filePath);
|
||||
if (blobPath != null) {
|
||||
var metricsElement = fileElement.element("metrics");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user