Skip to content

Commit

Permalink
Merge pull request #65 from jglick/CCE
Browse files Browse the repository at this point in the history
Fixing ClassCastException found by PCT
  • Loading branch information
jglick authored Jun 16, 2020
2 parents c7e3072 + 3d9eac4 commit 98f0fdf
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 98f0fdf

Please sign in to comment.