Class RetryStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkinsci.plugins.workflow.steps.RetryStep
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class RetryStep
extends org.jenkinsci.plugins.workflow.steps.Step
Executes the body up to N times.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<org.jenkinsci.plugins.workflow.flow.ErrorCondition>
int
getCount()
void
setConditions
(List<org.jenkinsci.plugins.workflow.flow.ErrorCondition> conditions) org.jenkinsci.plugins.workflow.steps.StepExecution
start
(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
Constructor Details
-
RetryStep
@DataBoundConstructor public RetryStep(int count)
-
-
Method Details
-
getCount
public int getCount() -
getConditions
-
setConditions
@DataBoundSetter public void setConditions(List<org.jenkinsci.plugins.workflow.flow.ErrorCondition> conditions) -
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<org.jenkinsci.plugins.workflow.steps.Step>
- Overrides:
getDescriptor
in classorg.jenkinsci.plugins.workflow.steps.Step
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception - Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.Step
- Throws:
Exception
-