Class InputStepExecution
java.lang.Object
org.jenkinsci.plugins.workflow.steps.StepExecution
org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl
org.jenkinsci.plugins.workflow.support.steps.input.InputStepExecution
- All Implemented Interfaces:
ModelObject, Serializable
@ExportedBean(defaultVisibility=2)
public class InputStepExecution
extends org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl
implements ModelObject
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponsedoAbort()Deprecated.org.kohsuke.stapler.HttpResponsedoAbort(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 rsp) REST endpoint to abort the workflow.org.kohsuke.stapler.HttpResponsedoDialogSubmit(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 rsp) Called from the console page for submitting the step when it has parameters.org.kohsuke.stapler.HttpResponsedoProceed(org.kohsuke.stapler.StaplerRequest req) Deprecated.org.kohsuke.stapler.HttpResponsedoProceed(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 rsp) REST endpoint to submit the input.org.kohsuke.stapler.HttpResponseDeprecated.org.kohsuke.stapler.HttpResponsedoProceedEmpty(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 rsp) Used from the Proceed hyperlink when no parameters are defined.org.kohsuke.stapler.HttpResponsedoSubmit(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 rsp) Called from the form via browser to submit/abort this input step.booleanbooleangetId()getInput()Run<?, ?> getRun()booleanIf this input step has been decided one way or the other.voidDeprecated.org.kohsuke.stapler.HttpResponsepreSubmissionCheck(org.kohsuke.stapler.StaplerRequest2 request) Check if the current user can submit the input.org.kohsuke.stapler.HttpResponseDeprecated.org.kohsuke.stapler.HttpResponseProcesses the acceptance (approval) request.booleanstart()voidMethods inherited from class org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl
inject, onResumeMethods inherited from class org.jenkinsci.plugins.workflow.steps.StepExecution
applyAll, applyAll, blocksRestart, getContext, getStatus, getStatusBounded
-
Method Details
-
start
-
stop
-
getId
-
getInput
-
getRun
- Throws:
IOExceptionInterruptedException
-
isSettled
@Exported public boolean isSettled()If this input step has been decided one way or the other. -
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject
-
doSubmit
public org.kohsuke.stapler.HttpResponse doSubmit(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException, InterruptedException Called from the form via browser to submit/abort this input step.- Throws:
IOExceptionjakarta.servlet.ServletExceptionInterruptedException
-
doDialogSubmit
public org.kohsuke.stapler.HttpResponse doDialogSubmit(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException, InterruptedException Called from the console page for submitting the step when it has parameters.- Throws:
IOExceptionjakarta.servlet.ServletExceptionInterruptedException
-
doProceed
public org.kohsuke.stapler.HttpResponse doProceed(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException, InterruptedException REST endpoint to submit the input.- Throws:
IOExceptionjakarta.servlet.ServletExceptionInterruptedException
-
doProceed
@Deprecated @StaplerNotDispatchable public org.kohsuke.stapler.HttpResponse doProceed(org.kohsuke.stapler.StaplerRequest req) throws IOException, javax.servlet.ServletException, InterruptedException Deprecated.- Throws:
IOExceptionjavax.servlet.ServletExceptionInterruptedException
-
proceed
public org.kohsuke.stapler.HttpResponse proceed(@CheckForNull Map<String, Object> params) throws IOException, InterruptedExceptionProcesses the acceptance (approval) request. This method is used by bothdoProceedEmpty(StaplerRequest2, StaplerResponse2)anddoProceed(StaplerRequest2, StaplerResponse2)- Parameters:
params- A map that represents the parameters sent in the request- Returns:
- A HttpResponse object that represents Status code (200) indicating the request succeeded normally.
- Throws:
IOExceptionInterruptedException
-
proceed
@Deprecated public org.kohsuke.stapler.HttpResponse proceed(Object v) throws IOException, InterruptedException Deprecated.- Throws:
IOExceptionInterruptedException
-
doProceedEmpty
@Deprecated @StaplerNotDispatchable public org.kohsuke.stapler.HttpResponse doProceedEmpty() throws IOException, InterruptedExceptionDeprecated.- Throws:
IOExceptionInterruptedException
-
doProceedEmpty
public org.kohsuke.stapler.HttpResponse doProceedEmpty(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, InterruptedException Used from the Proceed hyperlink when no parameters are defined.- Throws:
IOExceptionInterruptedException
-
doAbort
@Deprecated @StaplerNotDispatchable public org.kohsuke.stapler.HttpResponse doAbort() throws IOException, InterruptedExceptionDeprecated.- Throws:
IOExceptionInterruptedException
-
doAbort
public org.kohsuke.stapler.HttpResponse doAbort(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, InterruptedException REST endpoint to abort the workflow.- Throws:
IOExceptionInterruptedException
-
preSubmissionCheck
Deprecated.- Throws:
IOExceptionInterruptedException
-
preSubmissionCheck
public org.kohsuke.stapler.HttpResponse preSubmissionCheck(org.kohsuke.stapler.StaplerRequest2 request) throws IOException, InterruptedException Check if the current user can submit the input.- Returns:
- Throws:
IOExceptionInterruptedException
-
getHasUnsafeParameters
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean getHasUnsafeParameters() -
getHasUnsafeId
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean getHasUnsafeId()
-
doAbort(StaplerRequest2,StaplerResponse2)