Class InteractiveViewStepExecution

java.lang.Object
org.jenkinsci.plugins.workflow.steps.StepExecution
org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl
io.jenkins.plugins.interactiveinput.step.InteractiveViewStepExecution
All Implemented Interfaces:
Serializable

public class InteractiveViewStepExecution extends org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl
Durable, restart-safe execution for InteractiveViewStep.

Non-blocking (default): the file is snapshotted into the ViewStore, an anchored console link to the review page is logged, and the step completes synchronously returning the review id.

wait:true: mirrors AskInteractiveStepExecution exactly — start() returns false to release the CPS thread and pause the pipeline; the store resumes it via StepContext.onSuccess(java.lang.Object)/FutureCallback.onFailure(java.lang.Throwable) once a human records a decision (or the SLA elapses). The decision is returned to the pipeline (approve/reject/acknowledge/ request-changes do not abort the run), so the pipeline can branch on the review outcome. The returned map also carries the review's comments (inline, with their source line, plus general), so a generator can course-correct on a CHANGES_REQUESTED verdict (the regenerate loop).

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     
    boolean
     
    void
    stop(Throwable cause)
     

    Methods inherited from class org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl

    inject

    Methods inherited from class org.jenkinsci.plugins.workflow.steps.StepExecution

    acceptAll, acceptAll, applyAll, applyAll, blocksRestart, getContext, getStatus, getStatusBounded

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • start

      public boolean start() throws Exception
      Specified by:
      start in class org.jenkinsci.plugins.workflow.steps.StepExecution
      Throws:
      Exception
    • stop

      public void stop(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
    • getViewId

      public String getViewId()