Class ShellStep
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
-
- org.jenkinsci.plugins.workflow.steps.Step
-
- org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep
-
- org.jenkinsci.plugins.workflow.steps.durable_task.ShellStep
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
,EnvVarsFilterableBuilder
public final class ShellStep extends DurableTaskStep
Runs a Bourne shell script asynchronously on a build agent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShellStep.DescriptorImpl
-
Nested classes/interfaces inherited from class org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep
DurableTaskStep.AgentReconnectionListener, DurableTaskStep.DurableTaskStepDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep
REMOTE_TIMEOUT, USE_WATCHING, WATCHING_RECURRENCE_PERIOD
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getScript()
org.jenkinsci.plugins.workflow.steps.StepExecution
start(org.jenkinsci.plugins.workflow.steps.StepContext context)
protected org.jenkinsci.plugins.durabletask.DurableTask
task()
-
Methods inherited from class org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep
getEncoding, getLabel, isReturnStatus, isReturnStdout, setEncoding, setLabel, setReturnStatus, setReturnStdout, shutDownThreadPool
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jenkins.tasks.filters.EnvVarsFilterableBuilder
buildEnvVarsFilterRules
-
-
-
-
Constructor Detail
-
ShellStep
@DataBoundConstructor public ShellStep(String script)
-
-
Method Detail
-
getScript
public String getScript()
-
task
protected org.jenkinsci.plugins.durabletask.DurableTask task()
- Specified by:
task
in classDurableTaskStep
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception
- Overrides:
start
in classDurableTaskStep
- Throws:
Exception
-
-