public class DefaultDockerProvisioner extends DockerProvisioner
Container
s 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
IOException
InterruptedException
public ContainersContext getContext()
getContext
in class DockerProvisioner
public Container launchRemotingContainer(DockerComputer computer, hudson.model.TaskListener listener) throws IOException, InterruptedException
DockerProvisioner
launchRemotingContainer
in class DockerProvisioner
IOException
InterruptedException
public Container launchBuildContainers(hudson.Launcher.ProcStarter starter, hudson.model.TaskListener listener) throws IOException, InterruptedException
DockerProvisioner
ContainerSetDefinition
.launchBuildContainers
in class DockerProvisioner
IOException
InterruptedException
public Container launchScmContainer(hudson.model.TaskListener listener) throws IOException, InterruptedException
DockerProvisioner
launchScmContainer
in class DockerProvisioner
IOException
InterruptedException
public hudson.Proc launchBuildProcess(hudson.Launcher.ProcStarter procStarter, hudson.model.TaskListener listener) throws IOException, InterruptedException
DockerProvisioner
launchBuildProcess
in class DockerProvisioner
IOException
InterruptedException
public void clean(hudson.model.TaskListener listener) throws IOException, InterruptedException
DockerProvisioner
clean
in class DockerProvisioner
IOException
InterruptedException
Copyright © 2016–2017. All rights reserved.