Package it.dockins.dockerslaves.pipeline
Class DockerNodeStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkinsci.plugins.workflow.steps.AbstractStepImpl
it.dockins.dockerslaves.pipeline.DockerNodeStep
- All Implemented Interfaces:
ExtensionPoint,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class DockerNodeStep
extends org.jenkinsci.plugins.workflow.steps.AbstractStepImpl
Provisions a Docker container and run the closure into it like node would do for a normal node
Used like:
dockerNode(image:"cloudbees/java-tools", sideContainers: ["selenium/standalone-firefox"]) {
// execute some stuff inside this container
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetImage()booleanvoidsetSideContainers(List<String> sideContainers) voidsetSocket(boolean socket) Methods inherited from class org.jenkinsci.plugins.workflow.steps.AbstractStepImpl
prepareInjector, startMethods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
DockerNodeStep
-
-
Method Details
-
getImage
-
getSideContainers
-
setSideContainers
-
getSocket
public boolean getSocket() -
setSocket
@DataBoundSetter public void setSocket(boolean socket)
-