Class SSHStepExecution<T>
java.lang.Object
org.jenkinsci.plugins.workflow.steps.StepExecution
org.jenkinsci.plugins.sshsteps.util.SSHStepExecution<T>
- Type Parameters:
T
- the type of the return value (may beVoid
)
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CommandStep.Execution
,GetStep.Execution
,PutStep.Execution
,RemoveStep.Execution
,ScriptStep.Execution
public abstract class SSHStepExecution<T>
extends org.jenkinsci.plugins.workflow.steps.StepExecution
Non-blocking step execution for ssh steps.
- Author:
- Naresh Rayapati
- See Also:
-
StepExecution
- Serialized Form
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SSHStepExecution
(BasicSSHStep step, org.jenkinsci.plugins.workflow.steps.StepContext context) -
Method Summary
Methods inherited from class org.jenkinsci.plugins.workflow.steps.StepExecution
acceptAll, acceptAll, applyAll, applyAll, blocksRestart, getContext, getStatusBounded
-
Constructor Details
-
SSHStepExecution
protected SSHStepExecution(BasicSSHStep step, @NonNull org.jenkinsci.plugins.workflow.steps.StepContext context) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
-
Method Details
-
run
Meat of the execution. When this method returns, a step execution is over.- Throws:
Exception
-
getChannel
protected hudson.remoting.VirtualChannel getChannel() -
start
public final boolean start()- Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.StepExecution
-
stop
If the computation is going synchronously, try to cancel that.- Overrides:
stop
in classorg.jenkinsci.plugins.workflow.steps.StepExecution
- Throws:
Exception
-
onResume
public void onResume()- Overrides:
onResume
in classorg.jenkinsci.plugins.workflow.steps.StepExecution
-
getStatus
- Overrides:
getStatus
in classorg.jenkinsci.plugins.workflow.steps.StepExecution
-