Class PrioritySorterRestriction

java.lang.Object
com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
jenkins.advancedqueue.jobrestrictions.PrioritySorterRestriction
All Implemented Interfaces:
ExtensionPoint, Describable<com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction>, Serializable

public class PrioritySorterRestriction extends com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
Extends the JobRestriction from Job Restrictions Plugin making it possible to restrict Node usage based on priority.
Since:
3.3
Author:
Magnus Sandberg
See Also:
  • Constructor Details

    • PrioritySorterRestriction

      @DataBoundConstructor public PrioritySorterRestriction(int fromPriority, int toPriority)
  • Method Details

    • getFromPriority

      public int getFromPriority()
    • getToPriority

      public int getToPriority()
    • canTake

      public boolean canTake(Queue.BuildableItem buildableItem)
      Specified by:
      canTake in class com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
    • canTake

      public boolean canTake(Run run)
      Specified by:
      canTake in class com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction