Fix comparison of ItemInfo objects

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      If an ItemInfo object has the sortAsInQueueSince attribute set, the compareTo() method is not working correctly anymore.

      The check if we can sort by the InQueueSince time, is correctly using the getSortableInQueueSince() method, which includes the sortAsInQueueSince attribute and the inQueueSince attribute.

      However, the actually comparison does not use this function and uses getInQueueSince() instead. Because of that the sortAsInQueueSince attribute is ignored and the objects are compared wrongly, leading to a wrongly sorted build queue.

            Assignee:
            Magnus Sandberg
            Reporter:
            Patrick Firnkes
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: