Class ExecutorStepExecution

java.lang.Object
org.jenkinsci.plugins.workflow.steps.StepExecution
org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl
org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution
All Implemented Interfaces:
Serializable

public class ExecutorStepExecution extends org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl
See Also:
  • Field Details

    • TIMEOUT_WAITING_FOR_NODE_MILLIS

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static long TIMEOUT_WAITING_FOR_NODE_MILLIS
  • Method Details

    • start

      public boolean start() throws Exception
      General strategy of this step. 1. schedule ExecutorStepExecution.PlaceholderTask into the Queue (what this method does) 2. when ExecutorStepExecution.PlaceholderTask starts running, invoke the closure 3. when the closure is done, let ExecutorStepExecution.PlaceholderTask complete
      Specified by:
      start in class org.jenkinsci.plugins.workflow.steps.StepExecution
      Throws:
      Exception
    • stop

      public void stop(@NonNull Throwable cause) throws Exception
      Overrides:
      stop in class org.jenkinsci.plugins.workflow.steps.StepExecution
      Throws:
      Exception
    • onResume

      public void onResume()
      Overrides:
      onResume in class org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl
    • getStatus

      public String getStatus()
      Overrides:
      getStatus in class org.jenkinsci.plugins.workflow.steps.StepExecution