Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import hudson.Extension;
import hudson.model.TaskListener;
import hudson.util.ListBoxModel;
import jenkins.util.SystemProperties;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.DataBoundSetter;

Expand Down Expand Up @@ -59,6 +60,9 @@ public DescriptorImpl getDescriptor() {

@Override
public StepExecution start(StepContext context) throws Exception {
if (SystemProperties.getBoolean(TimeoutStep.class.getName() + ".threadsafe")) {
return new TimeoutStepExecutionThreadSafe(this, context);
}
return new TimeoutStepExecution(this, context);
}

Expand Down
Loading