Package it.dockins.dockerslaves
Class DockerSlaves
java.lang.Object
hudson.Plugin
it.dockins.dockerslaves.DockerSlaves
- All Implemented Interfaces:
Describable<DockerSlaves>,Saveable,Loadable,org.kohsuke.stapler.StaplerProxy
Cloud implementation designed to launch a set of containers (aka "pod") to establish a Jenkins executor.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.Plugin
Plugin.DummyImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionorg.jenkinsci.plugins.docker.commons.credentials.DockerServerEndpointFields inherited from class hudson.Plugin
SKIP_PERMISSION_CHECK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) static DockerSlavesget()intvoidsetDefaultBuildContainerImageName(String defaultBuildContainerImageName) voidsetDockerProvisionerFactory(DockerProvisionerFactory dockerProvisionerFactory) voidsetMaxSlaves(int maxSlaves) voidstart()Methods inherited from class hudson.Plugin
configure, configure, doDynamic, doDynamic, getConfigXml, getTarget, getWrapper, load, postInitialize, save, setServletContext, stop
-
Field Details
-
scmContainerImageName
-
remotingContainerImageName
-
dockerHost
public org.jenkinsci.plugins.docker.commons.credentials.DockerServerEndpoint dockerHost
-
-
Constructor Details
-
DockerSlaves
public DockerSlaves()
-
-
Method Details
-
start
- Overrides:
startin classPlugin- Throws:
IOException
-
configure
public void configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws IOException, javax.servlet.ServletException, Descriptor.FormException - Overrides:
configurein classPlugin- Throws:
IOExceptionjavax.servlet.ServletExceptionDescriptor.FormException
-
getDefaultBuildContainerImageName
-
setDefaultBuildContainerImageName
@DataBoundSetter public void setDefaultBuildContainerImageName(String defaultBuildContainerImageName) -
setDockerProvisionerFactory
@DataBoundSetter public void setDockerProvisionerFactory(DockerProvisionerFactory dockerProvisionerFactory) -
getDockerProvisionerFactory
-
createStandardJobProvisionerFactory
public DockerProvisioner createStandardJobProvisionerFactory(Job job) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getMaxSlaves
public int getMaxSlaves() -
setMaxSlaves
@DataBoundSetter public void setMaxSlaves(int maxSlaves) -
createProvisionerForPipeline
public DockerProvisioner createProvisionerForPipeline(Job job, ContainerSetDefinition spec) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
get
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<DockerSlaves>
-