Class BuildPreference
java.lang.Object
hudson.model.AbstractDescribableImpl<BuildPreference>
jp.ikedam.jenkins.plugins.scoringloadbalancer.preferences.BuildPreference
- All Implemented Interfaces:
Describable<BuildPreference>
Holds the configuration that which nodes are preferred to use.
Used by
BuildPreferenceJobProperty.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the label expression to determine target nodes.intReturns the preference score for target nodes.Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
BuildPreference
Constructor. Initialized with values a user configured.- Parameters:
labelExpression-preference-
-
-
Method Details
-
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
-