public class DockerSlaves extends hudson.Plugin implements hudson.model.Describable<DockerSlaves>
Cloud
implementation designed to launch a set of containers (aka "pod") to establish a Jenkins executor.Modifier and Type | Class and Description |
---|---|
static class |
DockerSlaves.DescriptorImpl |
Modifier and Type | Field and Description |
---|---|
org.jenkinsci.plugins.docker.commons.credentials.DockerServerEndpoint |
dockerHost |
String |
remotingContainerImageName |
String |
scmContainerImageName |
Constructor and Description |
---|
DockerSlaves() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
DockerProvisioner |
createProvisionerForPipeline(hudson.model.Job job,
ContainerSetDefinition spec) |
DockerProvisioner |
createStandardJobProvisionerFactory(hudson.model.Job job) |
static DockerSlaves |
get() |
String |
getDefaultBuildContainerImageName() |
hudson.model.Descriptor<DockerSlaves> |
getDescriptor() |
DockerProvisionerFactory |
getDockerProvisionerFactory() |
int |
getMaxSlaves() |
void |
setDefaultBuildContainerImageName(String defaultBuildContainerImageName) |
void |
setDockerProvisionerFactory(DockerProvisionerFactory dockerProvisionerFactory) |
void |
setMaxSlaves(int maxSlaves) |
void |
start() |
public String scmContainerImageName
public String remotingContainerImageName
public org.jenkinsci.plugins.docker.commons.credentials.DockerServerEndpoint dockerHost
public void start() throws IOException
start
in class hudson.Plugin
IOException
public void configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws IOException, javax.servlet.ServletException, hudson.model.Descriptor.FormException
configure
in class hudson.Plugin
IOException
javax.servlet.ServletException
hudson.model.Descriptor.FormException
public String getDefaultBuildContainerImageName()
@DataBoundSetter public void setDefaultBuildContainerImageName(String defaultBuildContainerImageName)
@DataBoundSetter public void setDockerProvisionerFactory(DockerProvisionerFactory dockerProvisionerFactory)
public DockerProvisionerFactory getDockerProvisionerFactory()
public DockerProvisioner createStandardJobProvisionerFactory(hudson.model.Job job) throws IOException, InterruptedException
IOException
InterruptedException
public int getMaxSlaves()
@DataBoundSetter public void setMaxSlaves(int maxSlaves)
public DockerProvisioner createProvisionerForPipeline(hudson.model.Job job, ContainerSetDefinition spec) throws IOException, InterruptedException
IOException
InterruptedException
public static DockerSlaves get()
public hudson.model.Descriptor<DockerSlaves> getDescriptor()
getDescriptor
in interface hudson.model.Describable<DockerSlaves>
Copyright © 2016–2017. All rights reserved.