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
ConstructorsModifierConstructorDescriptionprotectedSSHStepExecution(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:
IOExceptionInterruptedException
-
-
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:
startin classorg.jenkinsci.plugins.workflow.steps.StepExecution
-
stop
If the computation is going synchronously, try to cancel that.- Overrides:
stopin classorg.jenkinsci.plugins.workflow.steps.StepExecution- Throws:
Exception
-
onResume
public void onResume()- Overrides:
onResumein classorg.jenkinsci.plugins.workflow.steps.StepExecution
-
getStatus
- Overrides:
getStatusin classorg.jenkinsci.plugins.workflow.steps.StepExecution
-