Class DockerEnvContributor
java.lang.Object
hudson.model.EnvironmentContributor
org.jenkinsci.plugins.dockerbuildstep.DockerEnvContributor
- All Implemented Interfaces:
ExtensionPoint
This contributor adds various Docker relate variable like container IDs or IP addresses into build environment
variables.
- Author:
- vjuranek
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.EnvironmentContributor
EnvironmentContributor.EnvVarsHtml
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildEnvironmentFor
(Run r, EnvVars envs, TaskListener listener) Methods inherited from class hudson.model.EnvironmentContributor
all, buildEnvironmentFor
-
Field Details
-
ID_SEPARATOR
- See Also:
-
CONTAINER_IDS_ENV_VAR
- See Also:
-
CONTAINER_IP_PREFIX
- See Also:
-
PORT_BINDINGS_ENV_VAR
- See Also:
-
PORT_BINDING_PREFIX
- See Also:
-
HOST_SOCKET_PREFIX
- See Also:
-
-
Constructor Details
-
DockerEnvContributor
public DockerEnvContributor()
-
-
Method Details
-
buildEnvironmentFor
public void buildEnvironmentFor(Run r, EnvVars envs, TaskListener listener) throws IOException, InterruptedException - Overrides:
buildEnvironmentFor
in classEnvironmentContributor
- Throws:
IOException
InterruptedException
-