Class LockStepResource
java.lang.Object
hudson.model.AbstractDescribableImpl<LockStepResource>
org.jenkins.plugins.lockableresources.LockStepResource
- All Implemented Interfaces:
Describable<LockStepResource>
,Serializable
public class LockStepResource
extends AbstractDescribableImpl<LockStepResource>
implements Serializable
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
setQuantity
(int quantity) toString()
static String
void
validate()
Label and resource are mutual exclusive.static void
validate
(String resource, String label, String resourceSelectStrategy, boolean hasExtra, int priority, boolean inversePrecedence) Label and resource are mutual exclusive.static void
validate
(String resource, String label, String resourceSelectStrategy, List<LockStepResource> extra, int priority, boolean inversePrecedence) Validate input parametersMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Field Details
-
resource
-
label
-
quantity
public int quantity
-
-
Constructor Details
-
LockStepResource
-
-
Method Details
-
setLabel
-
setQuantity
@DataBoundSetter public void setQuantity(int quantity) -
toString
-
toString
-
validate
public void validate()Label and resource are mutual exclusive. -
validate
public static void validate(String resource, String label, String resourceSelectStrategy, List<LockStepResource> extra, int priority, boolean inversePrecedence) Validate input parameters -
validate
public static void validate(String resource, String label, String resourceSelectStrategy, boolean hasExtra, int priority, boolean inversePrecedence) Label and resource are mutual exclusive. The label, if provided, must be configured (at least one resource must have this label).
-