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
     }
 
  • Constructor Details

    • DockerNodeStep

      @DataBoundConstructor public DockerNodeStep(String image)
  • Method Details

    • getImage

      @CheckForNull public String getImage()
    • getSideContainers

      public List<String> getSideContainers()
    • setSideContainers

      @DataBoundSetter public void setSideContainers(List<String> sideContainers)
    • getSocket

      public boolean getSocket()
    • setSocket

      @DataBoundSetter public void setSocket(boolean socket)