-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
Jenkins 2.6
Plugin 3.5.1
Hello Everyone,
New Year Wishes
I am not able to sort the jobs as per the priority using this plugin.
My Requirement
Jobs in Build Queue should sort as per the priority
Any new job comes with priority/higher priority should run the job next on lockable resource where it can run.
Using lockable resources in the Environment
Configuration I DID
|
Only Admins can edit Job Priorities | |||
Check if only Administrators should be allowed to view and edit the Job Priorities |
Job Priorities
Assign Priorities by creating JobGroups. Priorities are assigned top down by first match.
JobGroup | |||
Description | |||
Jobs to include | All JobsJobs and Folders marked for inclusionJobs included in FolderJobs included in a View | ||
|
Priority | – use default priority --12345 | ||
Run Exclusive (experimental) | |||
Use additional rules when assigning a priority to a Job | |||
Priority Strategy | |||
Use Priority from Build Parameter | |||
Build Parameter Name | |||
Delete | |||
Add| |
Delete | |||
Add|
In Jobs using the parameter to assign the priority
This project is parameterized | ![]() |
||
String Parameter | ![]() |
||
Name | ![]() |
||
Default Value | ![]() |
||
Description | [Plain text] Preview |
![]() |
|
Delete |
Add Parameter|
Plugin behavior Observed
Jobs are running FIFO even after above configuration and priorities in jobs
when there are 3 jobs in build queue if i restart Jenkins, after restart only first 2 jobs are selected and sorted as per the priority (max number runs first)
In all other cases observed "Sorted 1 Buildable Items with Min Weight X and Max Weight X"
Version
Jenkins 2.6
Plugin 3.5.1
Please share your feedback. Thank you
[JENKINS-48746] build queue jobs are not sorting as per the priority (I think the sorter is not called everytime the new job is added to build queue)
Description |
Original:
Hello Everyone, New Year Wishes :) I am not able to sort the jobs as per the priority using this plugin. *My Requirement* Jobs in Build Queue should sort as per the priority Any new job comes with priority/higher priority should run the job next on lockable resource where it can run. Using lockable resources in the Environment *Configuration I DID* |Priority Sorter| | |Strategy|AbsoluteFair QueuingWeighted Fair Queuing|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | |*Absolute*_Lower_ priority is scheduled before _higher_ priority.| | | |Number of Priorities| |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | | |The Update will do a linear mapping from your current priorities to the selected range.| | | | | | | |Default Priority|12345|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | | | | | | | | | | | | | |Only Admins can edit Job Priorities| | | | | | | | |Check if only Administrators should be allowed to view and edit the Job Priorities| h2. Job Priorities Assign Priorities by creating JobGroups. Priorities are assigned top down by first match. | | |JobGroup | |Description| | | | | | | | | | | | |Jobs to include|All JobsJobs and Folders marked for inclusionJobs included in FolderJobs included in a View| | | | | | | | | | | | | | |Priority|-- use default priority --12345| | | | | | | |Run Exclusive (experimental)| | | | | | | |Use additional rules when assigning a priority to a Job| | | | |Priority Strategy | |Use Priority from Build Parameter| | | |Build Parameter Name| | | | | | | | | | | | | | | |Delete| | | | | | Add| | | | | | | | |Delete| | | | | | Add| In Jobs using the parameter to assign the priority |This project is parameterized|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | |*String Parameter*|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | |Name| |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | | |Default Value| |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | | |Description| [Plain text] [Preview|http://10.172.97.49:8080/view/priority_1/job/test1/configure] |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | |Delete| Add Parameter| *Plugin behavior Observed* Jobs are running FIFO even after above configuration and priorities in jobs *Version* Jenkins 2.6 Plugin 3.5.1 Please share your feedback. Thank you |
New:
Hello Everyone, New Year Wishes :) I am not able to sort the jobs as per the priority using this plugin. *My Requirement* Jobs in Build Queue should sort as per the priority Any new job comes with priority/higher priority should run the job next on lockable resource where it can run. Using lockable resources in the Environment *Configuration I DID* |Priority Sorter| | |Strategy|AbsoluteFair QueuingWeighted Fair Queuing|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | |*Absolute*_Lower_ priority is scheduled before _higher_ priority.| | | |Number of Priorities| 5|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | | |The Update will do a linear mapping from your current priorities to the selected range.| | | | | | | |Default Priority|3|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | | | | | | | | | | | | | |Only Admins can edit Job Priorities| | | | | | | | |Check if only Administrators should be allowed to view and edit the Job Priorities| h2. Job Priorities Assign Priorities by creating JobGroups. Priorities are assigned top down by first match. | | |JobGroup| | |Description| | | | | | | | | | | | |Jobs to include|All JobsJobs and Folders marked for inclusionJobs included in FolderJobs included in a View| | | | | | | | | | | | | | | |Priority|– use default priority --12345| | | | | | | |Run Exclusive (experimental)| | | | | | | |Use additional rules when assigning a priority to a Job| | | | |Priority Strategy| | |Use Priority from Build Parameter| | | |Build Parameter Name| | | | | | | | | | | | | | | |Delete| | | | | | Add| | | | | | | | |Delete| | | | | | Add| In Jobs using the parameter to assign the priority |This project is parameterized|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | |*String Parameter*|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | |Name| |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | | |Default Value| |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | | |Description| [Plain text] [Preview|http://10.172.97.49:8080/view/priority_1/job/test1/configure] |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | |Delete| Add Parameter| *Plugin behavior Observed* Jobs are running FIFO even after above configuration and priorities in jobs *Version* Jenkins 2.6 Plugin 3.5.1 Please share your feedback. Thank you |
Description |
Original:
Hello Everyone, New Year Wishes :) I am not able to sort the jobs as per the priority using this plugin. *My Requirement* Jobs in Build Queue should sort as per the priority Any new job comes with priority/higher priority should run the job next on lockable resource where it can run. Using lockable resources in the Environment *Configuration I DID* |Priority Sorter| | |Strategy|AbsoluteFair QueuingWeighted Fair Queuing|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | |*Absolute*_Lower_ priority is scheduled before _higher_ priority.| | | |Number of Priorities| 5|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | | |The Update will do a linear mapping from your current priorities to the selected range.| | | | | | | |Default Priority|3|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | | | | | | | | | | | | | |Only Admins can edit Job Priorities| | | | | | | | |Check if only Administrators should be allowed to view and edit the Job Priorities| h2. Job Priorities Assign Priorities by creating JobGroups. Priorities are assigned top down by first match. | | |JobGroup| | |Description| | | | | | | | | | | | |Jobs to include|All JobsJobs and Folders marked for inclusionJobs included in FolderJobs included in a View| | | | | | | | | | | | | | | |Priority|– use default priority --12345| | | | | | | |Run Exclusive (experimental)| | | | | | | |Use additional rules when assigning a priority to a Job| | | | |Priority Strategy| | |Use Priority from Build Parameter| | | |Build Parameter Name| | | | | | | | | | | | | | | |Delete| | | | | | Add| | | | | | | | |Delete| | | | | | Add| In Jobs using the parameter to assign the priority |This project is parameterized|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | |*String Parameter*|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | |Name| |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | | |Default Value| |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | | |Description| [Plain text] [Preview|http://10.172.97.49:8080/view/priority_1/job/test1/configure] |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | |Delete| Add Parameter| *Plugin behavior Observed* Jobs are running FIFO even after above configuration and priorities in jobs *Version* Jenkins 2.6 Plugin 3.5.1 Please share your feedback. Thank you |
New:
Hello Everyone, New Year Wishes :) I am not able to sort the jobs as per the priority using this plugin. *My Requirement* Jobs in Build Queue should sort as per the priority Any new job comes with priority/higher priority should run the job next on lockable resource where it can run. Using lockable resources in the Environment *Configuration I DID* |Priority Sorter| | |Strategy|AbsoluteFair QueuingWeighted Fair Queuing|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | |*Absolute*_Lower_ priority is scheduled before _higher_ priority.| | | |Number of Priorities| 5|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | | |The Update will do a linear mapping from your current priorities to the selected range.| | | | | | | |Default Priority|3|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | | | | | | | | | | | | | |Only Admins can edit Job Priorities| | | | | | | | |Check if only Administrators should be allowed to view and edit the Job Priorities| Job Priorities Assign Priorities by creating JobGroups. Priorities are assigned top down by first match. | | |JobGroup| | |Description| | | | | | | | | | | | |Jobs to include|All JobsJobs and Folders marked for inclusionJobs included in FolderJobs included in a View| | | | | | | | | | | | | | | |Priority|– use default priority --12345| | | | | | | |Run Exclusive (experimental)| | | | | | | |Use additional rules when assigning a priority to a Job| | | | |Priority Strategy| | |Use Priority from Build Parameter| | | |Build Parameter Name| | | | | | | | | | | | | | | |Delete| | | | | | Add| | | | | | | | |Delete| | | | | | Add| In Jobs using the parameter to assign the priority |This project is parameterized|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | |*String Parameter*|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | |Name| |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | | |Default Value| |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | | |Description| [Plain text] [Preview|http://10.172.97.49:8080/view/priority_1/job/test1/configure] |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | |Delete| Add Parameter| *Plugin behavior Observed* Jobs are running FIFO even after above configuration and priorities in jobs *Version* Jenkins 2.6 Plugin 3.5.1 Please share your feedback. Thank you |
Summary | Original: build queue jobs are not sorting as per the priority | New: build queue jobs are not sorting as per the priority (I think the sorter is not called everytime the new job is added to build queue) |
Description |
Original:
Hello Everyone, New Year Wishes :) I am not able to sort the jobs as per the priority using this plugin. *My Requirement* Jobs in Build Queue should sort as per the priority Any new job comes with priority/higher priority should run the job next on lockable resource where it can run. Using lockable resources in the Environment *Configuration I DID* |Priority Sorter| | |Strategy|AbsoluteFair QueuingWeighted Fair Queuing|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | |*Absolute*_Lower_ priority is scheduled before _higher_ priority.| | | |Number of Priorities| 5|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | | |The Update will do a linear mapping from your current priorities to the selected range.| | | | | | | |Default Priority|3|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | | | | | | | | | | | | | |Only Admins can edit Job Priorities| | | | | | | | |Check if only Administrators should be allowed to view and edit the Job Priorities| Job Priorities Assign Priorities by creating JobGroups. Priorities are assigned top down by first match. | | |JobGroup| | |Description| | | | | | | | | | | | |Jobs to include|All JobsJobs and Folders marked for inclusionJobs included in FolderJobs included in a View| | | | | | | | | | | | | | | |Priority|– use default priority --12345| | | | | | | |Run Exclusive (experimental)| | | | | | | |Use additional rules when assigning a priority to a Job| | | | |Priority Strategy| | |Use Priority from Build Parameter| | | |Build Parameter Name| | | | | | | | | | | | | | | |Delete| | | | | | Add| | | | | | | | |Delete| | | | | | Add| In Jobs using the parameter to assign the priority |This project is parameterized|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | |*String Parameter*|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | |Name| |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | | |Default Value| |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | | |Description| [Plain text] [Preview|http://10.172.97.49:8080/view/priority_1/job/test1/configure] |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | |Delete| Add Parameter| *Plugin behavior Observed* Jobs are running FIFO even after above configuration and priorities in jobs *Version* Jenkins 2.6 Plugin 3.5.1 Please share your feedback. Thank you |
New:
Hello Everyone, New Year Wishes :) I am not able to sort the jobs as per the priority using this plugin. *My Requirement* Jobs in Build Queue should sort as per the priority Any new job comes with priority/higher priority should run the job next on lockable resource where it can run. Using lockable resources in the Environment *Configuration I DID* |Priority Sorter| | |Strategy|AbsoluteFair QueuingWeighted Fair Queuing|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | |*Absolute*_Lower_ priority is scheduled before _higher_ priority.| | | |Number of Priorities| 5|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | | |The Update will do a linear mapping from your current priorities to the selected range.| | | | | | | |Default Priority|3|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/configure]| | | | | | | | | | | | | | | | | |Only Admins can edit Job Priorities| | | | | | | | |Check if only Administrators should be allowed to view and edit the Job Priorities| Job Priorities Assign Priorities by creating JobGroups. Priorities are assigned top down by first match. | | |JobGroup| | |Description| | | | | | | | | | | | |Jobs to include|All JobsJobs and Folders marked for inclusionJobs included in FolderJobs included in a View| | | | | | | | | | | | | | | |Priority|– use default priority --12345| | | | | | | |Run Exclusive (experimental)| | | | | | | |Use additional rules when assigning a priority to a Job| | | | |Priority Strategy| | |Use Priority from Build Parameter| | | |Build Parameter Name| | | | | | | | | | | | | | | |Delete| | | | | | Add| | | | | | | | |Delete| | | | | | Add| In Jobs using the parameter to assign the priority |This project is parameterized|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | |*String Parameter*|[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | |Name| |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | | |Default Value| |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | | |Description| [Plain text] [Preview|http://10.172.97.49:8080/view/priority_1/job/test1/configure] |[!http://10.172.97.49:8080/static/848bf0b3/images/16x16/help.png!|http://10.172.97.49:8080/view/priority_1/job/test1/configure]| | | | | | | | | |Delete| Add Parameter| *Plugin behavior Observed* Jobs are running FIFO even after above configuration and priorities in jobs when there are 3 jobs in build queue if i restart Jenkins, after restart only first 2 jobs are selected and sorted as per the priority (max number runs first) In all other cases observed "Sorted 1 Buildable Items with Min Weight X and Max Weight X" *Version* Jenkins 2.6 Plugin 3.5.1 Please share your feedback. Thank you |
Assignee | Original: Magnus Sandberg [ emsa23 ] |