From fdf14911caf2dccf7d8805d4227af5856580f92a Mon Sep 17 00:00:00 2001 From: kohsuke Date: Sat, 18 Nov 2006 14:10:19 +0000 Subject: [PATCH] fixed #163. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1150 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/util/RunList.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/src/main/java/hudson/util/RunList.java b/core/src/main/java/hudson/util/RunList.java index 3c8787c9a4..90138bbf73 100644 --- a/core/src/main/java/hudson/util/RunList.java +++ b/core/src/main/java/hudson/util/RunList.java @@ -64,6 +64,8 @@ public class RunList extends ArrayList { /** * Reduce the size of the list by only leaving relatively new ones. + * This also removed on-going builds, as RSS cannot be used to publish information + * if it changes. */ public RunList newBuilds() { GregorianCalendar threshold = new GregorianCalendar(); @@ -73,6 +75,11 @@ public class RunList extends ArrayList { for (Iterator itr = iterator(); itr.hasNext();) { Run r = itr.next(); + if(r.isBuilding()) { + // can't publish on-going builds + itr.remove(); + continue; + } // at least put 10 items if(count<10) { count++; -- GitLab