Class EphemeralContainerExecDecorator
java.lang.Object
hudson.LauncherDecorator
org.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator
io.jenkins.plugins.kubernetes.ephemeral.EphemeralContainerExecDecorator
- All Implemented Interfaces:
ExtensionPoint,Closeable,Serializable,AutoCloseable
public class EphemeralContainerExecDecorator
extends org.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator
EphemeralContainerExecDecorator is a LauncherDecorator specifically for containers launched
via an EphemeralContainerStep. This is exactly the same as ContainerExecDecorator but with
a different class name. The main purpose for this class is to get around the unfortunate bit of code in the
pipeline-maven-plugin which explicitly detects ContainerExecDecorator as "not a container". Not
sure the history behind it, but because it's not treated as a container env the maven bin is not correctly
determined because it uses the main Pod container env rather than introspecting the current Pod container
context.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class org.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator
COMMAND_FINISHED_TIMEOUT_MS -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator
close, getClient, getContainerName, getEnvironmentExpander, getGlobalVars, getNamespace, getNodeContext, getPodName, getRunContextEnvVars, setClient, setContainerName, setEnvironmentExpander, setGlobalVars, setKubernetesClient, setNamespace, setNodeContext, setPodName, setRunContextEnvVars, setShellMethods inherited from class hudson.LauncherDecorator
all
-
Constructor Details
-
EphemeralContainerExecDecorator
public EphemeralContainerExecDecorator()
-
-
Method Details
-
decorate
- Overrides:
decoratein classorg.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator
-