public class LockStep extends org.jenkinsci.plugins.workflow.steps.Step implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
LockStep.DescriptorImpl |
ExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
List<LockStepResource> |
extra |
boolean |
inversePrecedence |
String |
label |
int |
quantity |
String |
resource |
boolean |
skipIfLocked |
String |
variable
name of environment variable to store locked resources in
|
| Modifier and Type | Method and Description |
|---|---|
List<LockStepResource> |
getResources() |
void |
setExtra(List<LockStepResource> extra) |
void |
setInversePrecedence(boolean inversePrecedence) |
void |
setLabel(String label) |
void |
setQuantity(int quantity) |
void |
setSkipIfLocked(boolean skipIfLocked) |
void |
setVariable(String variable) |
org.jenkinsci.plugins.workflow.steps.StepExecution |
start(org.jenkinsci.plugins.workflow.steps.StepContext context) |
String |
toString() |
void |
validate()
Label and resource are mutual exclusive.
|
@CheckForNull public String resource
@CheckForNull public String label
public int quantity
@CheckForNull public String variable
public boolean inversePrecedence
public boolean skipIfLocked
@CheckForNull public List<LockStepResource> extra
@DataBoundConstructor
public LockStep(@Nullable
String resource)
@DataBoundSetter public void setInversePrecedence(boolean inversePrecedence)
@DataBoundSetter public void setSkipIfLocked(boolean skipIfLocked)
@DataBoundSetter public void setLabel(String label)
@DataBoundSetter public void setVariable(String variable)
@DataBoundSetter public void setQuantity(int quantity)
@DataBoundSetter
public void setExtra(@CheckForNull
List<LockStepResource> extra)
public void validate()
public List<LockStepResource> getResources()
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context)
start in class org.jenkinsci.plugins.workflow.steps.StepCopyright © 2013–2021. All rights reserved.