public final class CpsBodyInvoker
extends org.jenkinsci.plugins.workflow.steps.BodyInvoker
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
.
CpsBodyExecution
Modifier and Type | Method and Description |
---|---|
org.jenkinsci.plugins.workflow.cps.CpsBodyExecution |
start()
Schedules the execution of the body.
|
CpsBodyInvoker |
withCallback(org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback callback) |
CpsBodyInvoker |
withContext(Object override) |
org.jenkinsci.plugins.workflow.steps.BodyInvoker |
withContexts(Collection<?> overrides) |
CpsBodyInvoker |
withDisplayName(String name) |
CpsBodyInvoker |
withStartAction(Action a) |
public CpsBodyInvoker withContext(Object override)
withContext
in class org.jenkinsci.plugins.workflow.steps.BodyInvoker
public org.jenkinsci.plugins.workflow.steps.BodyInvoker withContexts(Collection<?> overrides)
withContexts
in class org.jenkinsci.plugins.workflow.steps.BodyInvoker
public CpsBodyInvoker withStartAction(Action a)
public CpsBodyInvoker withCallback(org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback callback)
withCallback
in class org.jenkinsci.plugins.workflow.steps.BodyInvoker
public CpsBodyInvoker withDisplayName(@Nonnull String name)
withDisplayName
in class org.jenkinsci.plugins.workflow.steps.BodyInvoker
public org.jenkinsci.plugins.workflow.cps.CpsBodyExecution start()
launch(org.jenkinsci.plugins.workflow.cps.CpsThread)
methods.start
in class org.jenkinsci.plugins.workflow.steps.BodyInvoker
Copyright © 2016–2020. All rights reserved.