Package it.dockins.dockerslaves.spi
Class DockerProvisioner
java.lang.Object
it.dockins.dockerslaves.spi.DockerProvisioner
- Direct Known Subclasses:
DefaultDockerProvisioner
- Author:
- Nicolas De Loof
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclean(TaskListener listener) Cleanup all allocated resourcesabstract ContainersContextabstract ContainerlaunchBuildContainers(Launcher.ProcStarter starter, TaskListener listener) Launch build environment as defined by (@link Job}'sContainerSetDefinition.abstract ProclaunchBuildProcess(Launcher.ProcStarter procStarter, TaskListener listener) Run specified process inside the main build containerabstract ContainerlaunchRemotingContainer(DockerComputer computer, TaskListener listener) Launch a container to host jenkins remoting agent and establish a channel as a Jenkins slave.abstract ContainerlaunchScmContainer(TaskListener listener) Launch a container with adequate tools to run the SCM checkout build phase.
-
Constructor Details
-
DockerProvisioner
public DockerProvisioner()
-
-
Method Details
-
getContext
-
launchRemotingContainer
public abstract Container launchRemotingContainer(DockerComputer computer, TaskListener listener) throws IOException, InterruptedException Launch a container to host jenkins remoting agent and establish a channel as a Jenkins slave.- Throws:
IOExceptionInterruptedException
-
launchScmContainer
public abstract Container launchScmContainer(TaskListener listener) throws IOException, InterruptedException Launch a container with adequate tools to run the SCM checkout build phase.- Throws:
IOExceptionInterruptedException
-
launchBuildContainers
public abstract Container launchBuildContainers(Launcher.ProcStarter starter, TaskListener listener) throws IOException, InterruptedException Launch build environment as defined by (@link Job}'sContainerSetDefinition.- Throws:
IOExceptionInterruptedException
-
launchBuildProcess
public abstract Proc launchBuildProcess(Launcher.ProcStarter procStarter, TaskListener listener) throws IOException, InterruptedException Run specified process inside the main build container- Throws:
IOExceptionInterruptedException
-
clean
Cleanup all allocated resources- Throws:
IOExceptionInterruptedException
-