Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: prioritysorter-plugin
-
Labels:None
-
Similar Issues:
Description
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.
Attachments
Issue Links
- links to
Code changed in jenkins
User: Patrick Firnkes
Path:
src/main/java/jenkins/advancedqueue/sorter/ItemInfo.java
http://jenkins-ci.org/commit/priority-sorter-plugin/2876ebf26a3e47a0159cdaf5169fb390981be340
Log:
JENKINS-41419Fix comparison of ItemInfo objects