From 3d9eac40587a48e47f2ceba4ba56e7938d55ff85 Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Tue, 16 Jun 2020 16:15:17 -0400 Subject: [PATCH] Fixing ClassCastException found by PCT --- src/main/java/hudson/tasks/test/MatrixTestResult.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/hudson/tasks/test/MatrixTestResult.java b/src/main/java/hudson/tasks/test/MatrixTestResult.java index de63df6a..dbfe567f 100644 --- a/src/main/java/hudson/tasks/test/MatrixTestResult.java +++ b/src/main/java/hudson/tasks/test/MatrixTestResult.java @@ -52,7 +52,7 @@ public MatrixTestResult() {} */ @Override protected String getChildName(AbstractTestResultAction tr) { - return ((MatrixBuild)tr.run).getProject().getName(); + return tr.run.getParent().getName(); } @Override @@ -64,7 +64,7 @@ public AbstractBuild resolveChild(Child child) { @Override public String getTestResultPath(TestResult it) { // Prepend Configuration path - return it.getOwner().getParent().getShortUrl() + super.getTestResultPath(it); + return it.getRun().getParent().getShortUrl() + super.getTestResultPath(it); } /* We are required to override and call super since the parent class is in