Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. 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)

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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
         
        AbsoluteLower priority is scheduled before higher priority.  
        Number of Priorities  5
           
        The Update will do a linear mapping from your current priorities to the selected range.  
           
        Default Priority 3
           
           
       

       |

           
        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

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Please update to a recent Jenkins LTS version. Jenkins 2.6 has known issues with the queue, and it does not make sense to investigate the report for this version

          Show
          oleg_nenashev Oleg Nenashev added a comment - Please update to a recent Jenkins LTS version. Jenkins 2.6 has known issues with the queue, and it does not make sense to investigate the report for this version
          Hide
          totoroliu Rick Liu added a comment -

          I hit the same issue with the Jenkins LTS 2.107.3 and Priority Sorter Plugin v 3.6.0.
          Refer to JENKINS-52085 my reproduce steps and configuration.

          Show
          totoroliu Rick Liu added a comment - I hit the same issue with the Jenkins LTS 2.107.3 and Priority Sorter Plugin v 3.6.0. Refer to JENKINS-52085 my reproduce steps and configuration.
          Hide
          mohgeis Mohamed Geis added a comment -

          I see the same issue with Jenkins 2.89.2, PrioritySorter_v3.6.0, and LockableResources_v2.3

           

          Show
          mohgeis Mohamed Geis added a comment - I see the same issue with Jenkins 2.89.2, PrioritySorter_v3.6.0, and LockableResources_v2.3  
          Hide
          kishore524 Kishore Reddy added a comment -

          Does anyone know if this issue is going to be fixed or?

           

          Show
          kishore524 Kishore Reddy added a comment - Does anyone know if this issue is going to be fixed or?  

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rayaraddi Sachin Rayaraddi
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated: