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

      • TimeoutStep

        @DataBoundConstructor
        public TimeoutStep​(int time)
    • Method Detail

      • setUnit

        @DataBoundSetter
        public void setUnit​(TimeUnit unit)
      • getTime

        public int getTime()
      • setActivity

        @DataBoundSetter
        public void setActivity​(boolean activity)
      • isActivity

        public boolean isActivity()
      • 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