public class DefaultDockerProvisioner extends DockerProvisioner
Containers based on $ContainerSetDefinition to provide a queued task
 an executor.| Modifier and Type | Field and Description | 
|---|---|
| protected ContainersContext | context | 
| protected DockerDriver | driver | 
| protected String | remotingImage | 
| protected String | scmImage | 
| protected ContainerSetDefinition | spec | 
| Constructor and Description | 
|---|
| DefaultDockerProvisioner(ContainersContext context,
                        DockerDriver driver,
                        ContainerSetDefinition spec,
                        String remotingImage,
                        String scmImage) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clean(hudson.model.TaskListener listener)Cleanup all allocated resources | 
| ContainersContext | getContext() | 
| Container | launchBuildContainers(hudson.Launcher.ProcStarter starter,
                     hudson.model.TaskListener listener)Launch build environment as defined by (@link Job}'s  ContainerSetDefinition. | 
| hudson.Proc | launchBuildProcess(hudson.Launcher.ProcStarter procStarter,
                  hudson.model.TaskListener listener)Run specified process inside the main build container | 
| Container | launchRemotingContainer(DockerComputer computer,
                       hudson.model.TaskListener listener)Launch a container to host jenkins remoting agent and establish a channel as a Jenkins slave. | 
| Container | launchScmContainer(hudson.model.TaskListener listener)Launch a container whith adequate tools to run the SCM checkout build phase. | 
protected final ContainersContext context
protected final DockerDriver driver
protected final ContainerSetDefinition spec
protected final String remotingImage
protected final String scmImage
public DefaultDockerProvisioner(ContainersContext context, DockerDriver driver, ContainerSetDefinition spec, String remotingImage, String scmImage) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic ContainersContext getContext()
getContext in class DockerProvisionerpublic Container launchRemotingContainer(DockerComputer computer, hudson.model.TaskListener listener) throws IOException, InterruptedException
DockerProvisionerlaunchRemotingContainer in class DockerProvisionerIOExceptionInterruptedExceptionpublic Container launchBuildContainers(hudson.Launcher.ProcStarter starter, hudson.model.TaskListener listener) throws IOException, InterruptedException
DockerProvisionerContainerSetDefinition.launchBuildContainers in class DockerProvisionerIOExceptionInterruptedExceptionpublic Container launchScmContainer(hudson.model.TaskListener listener) throws IOException, InterruptedException
DockerProvisionerlaunchScmContainer in class DockerProvisionerIOExceptionInterruptedExceptionpublic hudson.Proc launchBuildProcess(hudson.Launcher.ProcStarter procStarter,
                                      hudson.model.TaskListener listener)
                               throws IOException,
                                      InterruptedException
DockerProvisionerlaunchBuildProcess in class DockerProvisionerIOExceptionInterruptedExceptionpublic void clean(hudson.model.TaskListener listener)
           throws IOException,
                  InterruptedException
DockerProvisionerclean in class DockerProvisionerIOExceptionInterruptedExceptionCopyright © 2016–2017. All rights reserved.