Skip to content

Commit

Permalink
Fix "No test results found" in Github build status
Browse files Browse the repository at this point in the history
- use AbstractTestResultAction instead of TestResultAction
- see jenkinsci/jenkins@37c5bc2
  • Loading branch information
slaunay committed Nov 23, 2015

Verified

This commit was signed with the committer’s verified signature.
mikeee Mike Nguyen
1 parent 8abdd4f commit 68b97e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -12,8 +12,8 @@
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.Result;
import hudson.tasks.test.AbstractTestResultAction;
import hudson.tasks.junit.TestResult;
import hudson.tasks.junit.TestResultAction;
import hudson.tasks.junit.CaseResult;
import hudson.tasks.test.AggregatedTestResultAction;
import hudson.tasks.test.AggregatedTestResultAction.ChildReport;
@@ -172,7 +172,7 @@ protected String getAggregatedTestResults(AbstractBuild<?, ?> build) {

public String getOneLineTestResults() {

TestResultAction testResultAction = build.getAction(TestResultAction.class);
AbstractTestResultAction testResultAction = build.getAction(AbstractTestResultAction.class);

if (testResultAction == null) {
return "No test results found.";

0 comments on commit 68b97e2

Please sign in to comment.