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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimeoutStep.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description TimeoutStep(int time)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeoutStep.DescriptorImpl
getDescriptor()
int
getTime()
TimeUnit
getUnit()
boolean
isActivity()
void
setActivity(boolean activity)
void
setUnit(TimeUnit unit)
org.jenkinsci.plugins.workflow.steps.StepExecution
start(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
-
-
Method Detail
-
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 interfaceDescribable<org.jenkinsci.plugins.workflow.steps.Step>
- Overrides:
getDescriptor
in classorg.jenkinsci.plugins.workflow.steps.Step
-
-