Class AskInteractiveStepExecution

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

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

Mirrors pipeline-input-step's InputStepExecution (verified against release 560.v56198a_642157): start() returns false so the CPS thread is released and the pipeline is genuinely paused; the QuestionStore resumes the pipeline via StepContext.onSuccess(java.lang.Object)/FutureCallback.onFailure(java.lang.Throwable) when a human answers.

For auditability it also mirrors the built-in input step's console UX: it logs an anchored console link to the per-build audit page and marks the flow node "paused" (so stage/flow views show a pause), then logs the resolved outcome (who answered/aborted, and what was chosen) when the question settles.

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
    • getQuestionId

      public String getQuestionId()