mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
Status of build history doesn't indicate test fafilure.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@29716 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
8df09e81cd
commit
fd054f70c1
1 file changed
+3
-3
@@ -1476,9 +1476,9 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
|
||||
return new Summary(false, Messages.Run_Summary_Aborted());
|
||||
|
||||
if(getResult()==Result.UNSTABLE) {
|
||||
if(((Run)this) instanceof Build) {
|
||||
AbstractTestResultAction trN = ((Build)(Run)this).getTestResultAction();
|
||||
AbstractTestResultAction trP = prev==null ? null : ((Build) prev).getTestResultAction();
|
||||
if(((Run)this) instanceof AbstractBuild) {
|
||||
AbstractTestResultAction trN = ((AbstractBuild)(Run)this).getTestResultAction();
|
||||
AbstractTestResultAction trP = prev==null ? null : ((AbstractBuild) prev).getTestResultAction();
|
||||
if(trP==null) {
|
||||
if(trN!=null && trN.getFailCount()>0)
|
||||
return new Summary(false, Messages.Run_Summary_TestFailures(trN.getFailCount()));
|
||||
|
||||
Reference in new issue
Block a user