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
Executes the body with a timeout, which will kill the body.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetTime()getUnit()booleanvoidsetActivity(boolean activity) voidorg.jenkinsci.plugins.workflow.steps.StepExecutionstart(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
Constructor Details
-
TimeoutStep
@DataBoundConstructor public TimeoutStep(int time)
-
-
Method Details
-
setUnit
-
getTime
public int getTime() -
getUnit
-
setActivity
@DataBoundSetter public void setActivity(boolean activity) -
isActivity
public boolean isActivity() -
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<org.jenkinsci.plugins.workflow.steps.Step>- Overrides:
getDescriptorin 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:
startin classorg.jenkinsci.plugins.workflow.steps.Step- Throws:
Exception
-