Class CpsBodyInvoker
java.lang.Object
org.jenkinsci.plugins.workflow.steps.BodyInvoker
org.jenkinsci.plugins.workflow.cps.CpsBodyInvoker
public final class CpsBodyInvoker
extends org.jenkinsci.plugins.workflow.steps.BodyInvoker
Builder pattern for accumulating configuration for executing the body.
After various withXyz
methods are invoked, start()
gets called
to schedule the execution. The actual state update happens from the launch(CpsThread,FlowHead)
method, which is CpsVmThreadOnly
.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
CpsBodyExecution
-
Method Summary
Modifier and TypeMethodDescriptionorg.jenkinsci.plugins.workflow.cps.CpsBodyExecution
start()
Schedules the execution of the body.withCallback
(org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback callback) withContext
(Object override) org.jenkinsci.plugins.workflow.steps.BodyInvoker
withContexts
(Collection<?> overrides) withDisplayName
(String name) Methods inherited from class org.jenkinsci.plugins.workflow.steps.BodyInvoker
mergeConsoleLogFilters, mergeLauncherDecorators, withCallback, withContexts
-
Method Details
-
withContext
- Specified by:
withContext
in classorg.jenkinsci.plugins.workflow.steps.BodyInvoker
-
withContexts
- Overrides:
withContexts
in classorg.jenkinsci.plugins.workflow.steps.BodyInvoker
-
withStartAction
-
withCallback
public CpsBodyInvoker withCallback(org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback callback) - Specified by:
withCallback
in classorg.jenkinsci.plugins.workflow.steps.BodyInvoker
-
withDisplayName
- Specified by:
withDisplayName
in classorg.jenkinsci.plugins.workflow.steps.BodyInvoker
-
start
public org.jenkinsci.plugins.workflow.cps.CpsBodyExecution start()Schedules the execution of the body. The actual launching of the body will be done later inlaunch(org.jenkinsci.plugins.workflow.cps.CpsThread)
methods.- Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.BodyInvoker
-