mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
[FIXED JENKINS-4617]
this and the previous commit constitutes the fix. Also added a test case.
This commit is contained in:
1 parent
502219cf1b
commit
e761d80f4d
4 files changed
+199
-1
No files matched your search
@@ -269,7 +269,7 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
|
||||
R p = getPreviousCompletedBuild();
|
||||
if (p !=null && isBuilding()) {
|
||||
Result pr = p.getResult();
|
||||
if (pr!=null && pr.isWorseThan(Result.UNSTABLE)) {
|
||||
if (pr!=null && pr.isWorseThan(Result.SUCCESS)) {
|
||||
// we are still building, so this is just the current latest information,
|
||||
// but we seems to be failing so far, so inherit culprits from the previous build.
|
||||
// isBuilding() check is to avoid recursion when loading data from old Hudson, which doesn't record
|
||||
|
||||
Reference in new issue
Block a user