Package io.jenkins.docker.client
Class DockerEnvUtils
- java.lang.Object
-
- io.jenkins.docker.client.DockerEnvUtils
-
public class DockerEnvUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addEnvToCmd(String envName, String envValue, com.github.dockerjava.api.command.CreateContainerCmd cmd)
Adds (or updates) an environment variable to the list of environment variables being passed into a create-container command.
-
-
-
Method Detail
-
addEnvToCmd
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static void addEnvToCmd(String envName, String envValue, com.github.dockerjava.api.command.CreateContainerCmd cmd)
Adds (or updates) an environment variable to the list of environment variables being passed into a create-container command.- Parameters:
envName
- The name of the environment variable to set.envValue
- The value to set it to.cmd
- TheCreateContainerCmd
whose environment settings are to be adjusted.
-
-