Class ContainerExecDecorator
java.lang.Object
hudson.LauncherDecorator
org.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator
- All Implemented Interfaces:
ExtensionPoint
,Closeable
,Serializable
,AutoCloseable
This decorator interacts directly with the Kubernetes exec API to run commands inside a container. It does not use
the Jenkins agent to execute commands.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
time in milliseconds to wait for checking whether the process immediately returned -
Constructor Summary
ConstructorsConstructorDescriptionContainerExecDecorator
(io.fabric8.kubernetes.client.KubernetesClient client, String podName, String containerName, String namespace) Deprecated.ContainerExecDecorator
(io.fabric8.kubernetes.client.KubernetesClient client, String podName, String containerName, String path, AtomicBoolean alive, CountDownLatch started, CountDownLatch finished) Deprecated.ContainerExecDecorator
(io.fabric8.kubernetes.client.KubernetesClient client, String podName, String containerName, String namespace, org.jenkinsci.plugins.workflow.steps.EnvironmentExpander environmentExpander) Deprecated.ContainerExecDecorator
(io.fabric8.kubernetes.client.KubernetesClient client, String podName, String containerName, String namespace, org.jenkinsci.plugins.workflow.steps.EnvironmentExpander environmentExpander, FilePath ws) Deprecated.ContainerExecDecorator
(io.fabric8.kubernetes.client.KubernetesClient client, String podName, String containerName, AtomicBoolean alive, CountDownLatch started, CountDownLatch finished) Deprecated.ContainerExecDecorator
(io.fabric8.kubernetes.client.KubernetesClient client, String podName, String containerName, AtomicBoolean alive, CountDownLatch started, CountDownLatch finished, String namespace) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
io.fabric8.kubernetes.client.KubernetesClient
Deprecated.org.jenkinsci.plugins.workflow.steps.EnvironmentExpander
Deprecated.org.csanchez.jenkins.plugins.kubernetes.pipeline.KubernetesNodeContext
Deprecated.void
setClient
(io.fabric8.kubernetes.client.KubernetesClient client) Deprecated.void
setContainerName
(String containerName) void
setEnvironmentExpander
(org.jenkinsci.plugins.workflow.steps.EnvironmentExpander environmentExpander) void
setGlobalVars
(EnvVars globalVars) void
setKubernetesClient
(io.fabric8.kubernetes.client.KubernetesClient client) Deprecated.void
setNamespace
(String namespace) Deprecated.void
setNodeContext
(org.csanchez.jenkins.plugins.kubernetes.pipeline.KubernetesNodeContext nodeContext) void
setPodName
(String podName) Deprecated.void
setRunContextEnvVars
(EnvVars rcVars) void
Methods inherited from class hudson.LauncherDecorator
all
-
Field Details
-
COMMAND_FINISHED_TIMEOUT_MS
public static final int COMMAND_FINISHED_TIMEOUT_MStime in milliseconds to wait for checking whether the process immediately returned- See Also:
-
-
Constructor Details
-
ContainerExecDecorator
public ContainerExecDecorator() -
ContainerExecDecorator
@Deprecated public ContainerExecDecorator(io.fabric8.kubernetes.client.KubernetesClient client, String podName, String containerName, String namespace, org.jenkinsci.plugins.workflow.steps.EnvironmentExpander environmentExpander, FilePath ws) Deprecated. -
ContainerExecDecorator
@Deprecated public ContainerExecDecorator(io.fabric8.kubernetes.client.KubernetesClient client, String podName, String containerName, String namespace, org.jenkinsci.plugins.workflow.steps.EnvironmentExpander environmentExpander) Deprecated. -
ContainerExecDecorator
@Deprecated public ContainerExecDecorator(io.fabric8.kubernetes.client.KubernetesClient client, String podName, String containerName, String namespace) Deprecated. -
ContainerExecDecorator
@Deprecated public ContainerExecDecorator(io.fabric8.kubernetes.client.KubernetesClient client, String podName, String containerName, AtomicBoolean alive, CountDownLatch started, CountDownLatch finished, String namespace) Deprecated. -
ContainerExecDecorator
@Deprecated public ContainerExecDecorator(io.fabric8.kubernetes.client.KubernetesClient client, String podName, String containerName, AtomicBoolean alive, CountDownLatch started, CountDownLatch finished) Deprecated. -
ContainerExecDecorator
@Deprecated public ContainerExecDecorator(io.fabric8.kubernetes.client.KubernetesClient client, String podName, String containerName, String path, AtomicBoolean alive, CountDownLatch started, CountDownLatch finished) Deprecated.
-
-
Method Details
-
getClient
Deprecated. -
setClient
Deprecated. -
getPodName
Deprecated. -
setPodName
Deprecated. -
getNamespace
Deprecated. -
setNamespace
Deprecated. -
getContainerName
-
setContainerName
-
getEnvironmentExpander
public org.jenkinsci.plugins.workflow.steps.EnvironmentExpander getEnvironmentExpander() -
setEnvironmentExpander
public void setEnvironmentExpander(org.jenkinsci.plugins.workflow.steps.EnvironmentExpander environmentExpander) -
getGlobalVars
-
setGlobalVars
-
setRunContextEnvVars
-
getRunContextEnvVars
-
setShell
-
getNodeContext
public org.csanchez.jenkins.plugins.kubernetes.pipeline.KubernetesNodeContext getNodeContext() -
setNodeContext
public void setNodeContext(org.csanchez.jenkins.plugins.kubernetes.pipeline.KubernetesNodeContext nodeContext) -
decorate
- Specified by:
decorate
in classLauncherDecorator
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
setKubernetesClient
Deprecated.
-