Markus commented on Bug JENKINS-24618

I have noticed exactly the same thing, running Jenkins ver. 1.565.2 as a local test server. I installed this server to solely to evaluate the priority sorter. No other plugins installed. Running Priority Sorter 2.8.

  1. One executor
  2. Launch Testjob with any priority (To occupy the executor).
  3. Launch Testjob_LowPri1 with a high priority number (i.e. low priority). This is queued, as expected
  4. Launch Testjob_HighPri1 with a low priority number (i.e. high priority). This is queued, as expected

Expected result: When Testjob is done, Testjob_HighPri1 is executed, then Testjob_LowPri1.
Actual result: When Testjob is done, Testjob_LowPri1 is executed, then Testjob_HighPri1.

From PrioritySorter.Queue.Items

sep 15, 2014 12:26:07 PM FINE PrioritySorter.Queue.Items
Buildable: Id: 61, JobName: Testjob, jobGroupId: 0, reason: <none>, priority: 10, weight: 10.0, status: BUILDABLE

sep 15, 2014 12:26:07 PM FINE PrioritySorter.Queue.Items
Starting: Id: 61, JobName: Testjob, jobGroupId: 0, reason: <none>, priority: 10, weight: 10.0, status: BUILDABLE

sep 15, 2014 12:26:09 PM FINE PrioritySorter.Queue.Items
Buildable: Id: 62, JobName: Testjob_LowPri1, jobGroupId: -1, reason: <none>, priority: 15, weight: 15.0, status: BUILDABLE

sep 15, 2014 12:26:12 PM FINE PrioritySorter.Queue.Items
Buildable: Id: 63, JobName: Testjob_HighPri1, jobGroupId: -1, reason: <none>, priority: 5, weight: 5.0, status: BUILDABLE

From Jenkins log:

sep 15, 2014 12:26:37 PM hudson.model.Run execute
INFO: Testjob #11 main build action completed: SUCCESS
sep 15, 2014 12:27:08 PM hudson.model.Run execute
INFO: Testjob_LowPri1 #12 main build action completed: SUCCESS
sep 15, 2014 12:27:38 PM hudson.model.Run execute
INFO: Testjob_HighPri1 #10 main build action completed: SUCCESS
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to