Class LockStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkins.plugins.lockableresources.LockStep
- All Implemented Interfaces:
ExtensionPoint,Describable<org.jenkinsci.plugins.workflow.steps.Step>,Serializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintintbooleanname of environment variable to store locked resources in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetExtra(List<LockStepResource> extra) voidsetInversePrecedence(boolean inversePrecedence) voidvoidsetPriority(int priority) voidsetQuantity(int quantity) voidsetResourceSelectStrategy(String resourceSelectStrategy) voidsetSkipIfLocked(boolean skipIfLocked) voidsetVariable(String variable) org.jenkinsci.plugins.workflow.steps.StepExecutionstart(org.jenkinsci.plugins.workflow.steps.StepContext context) toString()voidvalidate(boolean allowEmptyOrNullValues) Label and resource are mutual exclusive.Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Field Details
-
resource
-
label
-
quantity
public int quantity -
variable
name of environment variable to store locked resources in -
inversePrecedence
public boolean inversePrecedence -
resourceSelectStrategy
-
skipIfLocked
public boolean skipIfLocked -
extra
-
priority
public int priority
-
-
Constructor Details
-
LockStep
-
-
Method Details
-
setInversePrecedence
@DataBoundSetter public void setInversePrecedence(boolean inversePrecedence) -
setResourceSelectStrategy
-
setSkipIfLocked
@DataBoundSetter public void setSkipIfLocked(boolean skipIfLocked) -
setLabel
-
setVariable
-
setQuantity
@DataBoundSetter public void setQuantity(int quantity) -
setPriority
@DataBoundSetter public void setPriority(int priority) -
setExtra
-
toString
-
validate
public void validate(boolean allowEmptyOrNullValues) Label and resource are mutual exclusive. -
getResources
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) - Specified by:
startin classorg.jenkinsci.plugins.workflow.steps.Step
-