Class TimeoutStep

java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkinsci.plugins.workflow.steps.TimeoutStep
All Implemented Interfaces:
ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>, Serializable

public class TimeoutStep extends org.jenkinsci.plugins.workflow.steps.Step implements Serializable
Executes the body with a timeout, which will kill the body.
Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Details

    • TimeoutStep

      @DataBoundConstructor public TimeoutStep(int time)
  • Method Details

    • setUnit

      @DataBoundSetter public void setUnit(TimeUnit unit)
    • getTime

      public int getTime()
    • getUnit

      public TimeUnit getUnit()
    • setActivity

      @DataBoundSetter public void setActivity(boolean activity)
    • isActivity

      public boolean isActivity()
    • getDescriptor

      public TimeoutStep.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