From 68b97e260d5ba1d202fcd57a8e14758dd5faa7e6 Mon Sep 17 00:00:00 2001 From: Sebastien Launay Date: Mon, 23 Nov 2015 11:00:20 -0800 Subject: [PATCH] Fix "No test results found" in Github build status - use AbstractTestResultAction instead of TestResultAction - see https://github.com/jenkinsci/jenkins/commit/37c5bc2fd8616dbf4525c3a816e316015b4ff99e --- .../plugins/ghprb/manager/impl/GhprbBaseBuildManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jenkinsci/plugins/ghprb/manager/impl/GhprbBaseBuildManager.java b/src/main/java/org/jenkinsci/plugins/ghprb/manager/impl/GhprbBaseBuildManager.java index 97ad4acad..1a136d640 100644 --- a/src/main/java/org/jenkinsci/plugins/ghprb/manager/impl/GhprbBaseBuildManager.java +++ b/src/main/java/org/jenkinsci/plugins/ghprb/manager/impl/GhprbBaseBuildManager.java @@ -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.";