Class 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
    • Constructor Detail

      • RetryStep

        @DataBoundConstructor
        public RetryStep​(int count)
    • Method Detail

      • getCount

        public int getCount()
      • getConditions

        public List<org.jenkinsci.plugins.workflow.flow.ErrorCondition> getConditions()
      • setConditions

        @DataBoundSetter
        public void setConditions​(List<org.jenkinsci.plugins.workflow.flow.ErrorCondition> conditions)
      • getDescriptor

        public RetryStep.DescriptorImpl getDescriptor()
        Specified by:
        getDescriptor in interface Describable<org.jenkinsci.plugins.workflow.steps.Step>
        Overrides:
        getDescriptor in class org.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 class org.jenkinsci.plugins.workflow.steps.Step
        Throws:
        Exception