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 inttime 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 TypeMethodDescriptionvoidclose()io.fabric8.kubernetes.client.KubernetesClientDeprecated.org.jenkinsci.plugins.workflow.steps.EnvironmentExpanderDeprecated.Deprecated.voidsetClient(io.fabric8.kubernetes.client.KubernetesClient client) Deprecated.voidsetContainerName(String containerName) voidsetEnvironmentExpander(org.jenkinsci.plugins.workflow.steps.EnvironmentExpander environmentExpander) voidsetGlobalVars(EnvVars globalVars) voidsetKubernetesClient(io.fabric8.kubernetes.client.KubernetesClient client) Deprecated.voidsetNamespace(String namespace) Deprecated.voidsetNodeContext(KubernetesNodeContext nodeContext) voidsetPodName(String podName) Deprecated.voidsetRunContextEnvVars(EnvVars rcVars) voidMethods 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
-
setNodeContext
-
decorate
- Specified by:
decoratein classLauncherDecorator
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
setKubernetesClient
Deprecated.
-