Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41419

Fix comparison of ItemInfo objects

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.

            emsa23 Magnus Sandberg
            patfirn Patrick Firnkes
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: