Class ExecutorStep
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
-
- org.jenkinsci.plugins.workflow.steps.Step
-
- org.jenkinsci.plugins.workflow.support.steps.ExecutorStep
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
,Serializable
public final class ExecutorStep extends org.jenkinsci.plugins.workflow.steps.Step implements Serializable
Grabs anExecutor
on a node of your choice and runs its block with that executor occupied.Used like:
node("foo") { // execute some stuff in a build agent that has a label "foo" while workflow has this build agent }
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExecutorStep.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ExecutorStep(String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLabel()
org.jenkinsci.plugins.workflow.steps.StepExecution
start(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
-
-
Constructor Detail
-
ExecutorStep
@DataBoundConstructor public ExecutorStep(String label)
-
-