Class UpdateLockStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkins.plugins.lockableresources.UpdateLockStep
- All Implemented Interfaces:
ExtensionPoint,Describable<org.jenkinsci.plugins.workflow.steps.Step>,Serializable
public class UpdateLockStep
extends org.jenkinsci.plugins.workflow.steps.Step
implements Serializable
Pipeline step to update the definition of a lockable resource.
This step allows pipelines to:
- Create new resources
- Delete existing resources
- Add, remove, or set labels on resources
- Set notes on resources
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidsetAddLabels(String addLabels) voidsetCreateResource(boolean createResource) voidsetDeleteResource(boolean deleteResource) voidsetRemoveLabels(String removeLabels) voidsetResource(String resource) voidsetSetLabels(String setLabels) voidsetSetNote(String setNote) org.jenkinsci.plugins.workflow.steps.StepExecutionstart(org.jenkinsci.plugins.workflow.steps.StepContext context) toString()voidvalidate()Validates the step configuration.Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
UpdateLockStep
@DataBoundConstructor public UpdateLockStep()
-
-
Method Details
-
getResource
-
setResource
-
getAddLabels
-
setAddLabels
-
getSetLabels
-
setSetLabels
-
getRemoveLabels
-
setRemoveLabels
-
getSetNote
-
setSetNote
-
isCreateResource
public boolean isCreateResource() -
setCreateResource
@DataBoundSetter public void setCreateResource(boolean createResource) -
isDeleteResource
public boolean isDeleteResource() -
setDeleteResource
@DataBoundSetter public void setDeleteResource(boolean deleteResource) -
validate
public void validate()Validates the step configuration.- Throws:
IllegalArgumentException- if the configuration is invalid
-
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
-
toString
-