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()REST endpoint to abort the workflow.org.kohsuke.stapler.HttpResponsedoProceed(org.kohsuke.stapler.StaplerRequest req) Deprecated.org.kohsuke.stapler.HttpResponsedoProceed(org.kohsuke.stapler.StaplerRequest2 request) REST endpoint to submit the input.org.kohsuke.stapler.HttpResponseUsed from the Proceed hyperlink when no parameters are defined.org.kohsuke.stapler.HttpResponsedoSubmit(org.kohsuke.stapler.StaplerRequest2 request) 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.voidCheck 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
- Specified by:
startin classorg.jenkinsci.plugins.workflow.steps.StepExecution- Throws:
Exception
-
stop
- Overrides:
stopin classorg.jenkinsci.plugins.workflow.steps.StepExecution- Throws:
Exception
-
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) throws IOException, jakarta.servlet.ServletException, InterruptedException Called from the form via browser to submit/abort this input step.- Throws:
IOExceptionjakarta.servlet.ServletExceptionInterruptedException
-
doProceed
public org.kohsuke.stapler.HttpResponse doProceed(org.kohsuke.stapler.StaplerRequest2 request) 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()anddoProceed(StaplerRequest2)- 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
Used from the Proceed hyperlink when no parameters are defined.- Throws:
IOExceptionInterruptedException
-
doAbort
REST endpoint to abort the workflow.- Throws:
IOExceptionInterruptedException
-
preSubmissionCheck
Check if the current user can submit the input.- Throws:
IOExceptionInterruptedException
-
getHasUnsafeParameters
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean getHasUnsafeParameters() -
getHasUnsafeId
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean getHasUnsafeId()
-
doProceed(StaplerRequest2)