Skip to content

Commit

Permalink
Fixing ClassCastException found by PCT
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Jun 16, 2020
1 parent c7e3072 commit 3d9eac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/hudson/tasks/test/MatrixTestResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public MatrixTestResult() {}
*/
@Override
protected String getChildName(AbstractTestResultAction tr) {
return ((MatrixBuild)tr.run).getProject().getName();
return tr.run.getParent().getName();
}

@Override
Expand All @@ -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
Expand Down

0 comments on commit 3d9eac4

Please sign in to comment.