java.lang.Object
hudson.model.AbstractDescribableImpl<BuildPreference>
jp.ikedam.jenkins.plugins.scoringloadbalancer.preferences.BuildPreference
All Implemented Interfaces:
Describable<BuildPreference>

public class BuildPreference extends AbstractDescribableImpl<BuildPreference>
Holds the configuration that which nodes are preferred to use. Used by BuildPreferenceJobProperty.
  • Constructor Details

    • BuildPreference

      @DataBoundConstructor public BuildPreference(String labelExpression, int preference)
      Constructor. Initialized with values a user configured.
      Parameters:
      labelExpression -
      preference -
  • Method Details

    • getLabelExpression

      public String getLabelExpression()
      Returns the label expression to determine target nodes.
      Returns:
      the label expression
    • getPreference

      public int getPreference()
      Returns the preference score for target nodes.
      Returns:
      the preference score