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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
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
-