In my opinion, the code needs some correction even if it works properly in previous Jenkins versions.
Queue.init() initializes QueueSorter extensions, so it is quite strange to retrieve data from it at this stage...

I see the following fix:

  • Remove queue handling logic from AdvancedQueueSorter constructor
  • Move it to a separate method an call on the first sortBuildableItems() call
  • It also makes sense to call this method for new mode only (just don't do anything for legacy)
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to