public class DockerTool extends hudson.tools.ToolInstallation implements hudson.model.EnvironmentSpecific<DockerTool>, hudson.slaves.NodeSpecific<DockerTool>
bin/docker.
Use <d:selectDockerTool field="toolName" xmlns:d="/lib/docker/commons/"/> to customize.| Modifier and Type | Class and Description |
|---|---|
static class |
DockerTool.DescriptorImpl |
| Constructor and Description |
|---|
DockerTool(String name,
String home,
List<? extends hudson.tools.ToolProperty<?>> properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildEnvVars(hudson.EnvVars env) |
DockerTool |
forEnvironment(hudson.EnvVars environment) |
DockerTool |
forNode(hudson.model.Node node,
hudson.model.TaskListener log) |
static String |
getExecutable(String name,
hudson.model.Node node,
hudson.model.TaskListener listener,
hudson.EnvVars env)
Gets the executable name to use for a given launcher.
|
@Nonnull public static String getExecutable(@CheckForNull String name, @CheckForNull hudson.model.Node node, @Nullable hudson.model.TaskListener listener, @CheckForNull hudson.EnvVars env) throws IOException, InterruptedException
ArgumentListBuilder.name - the name of the selected tool, or null for the defaultnode - optionally, a node (such as a slave) on which we are running Dockerlistener - a listener, required in case node is not nullenv - optionally, environment variables to use when expanding the home directorydocker or an absolute pathIOExceptionInterruptedExceptionpublic DockerTool forEnvironment(hudson.EnvVars environment)
forEnvironment in interface hudson.model.EnvironmentSpecific<DockerTool>public DockerTool forNode(hudson.model.Node node, hudson.model.TaskListener log) throws IOException, InterruptedException
forNode in interface hudson.slaves.NodeSpecific<DockerTool>IOExceptionInterruptedExceptionpublic void buildEnvVars(hudson.EnvVars env)
buildEnvVars in class hudson.tools.ToolInstallationCopyright © 2016–2019. All rights reserved.