Class EphemeralContainerStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
io.jenkins.plugins.kubernetes.ephemeral.EphemeralContainerStep
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
,Serializable
- Direct Known Subclasses:
EphemeralContainerStep.DeprecatedEphemeralContainerStep
public class EphemeralContainerStep
extends org.jenkinsci.plugins.workflow.steps.Step
implements Serializable
Pipeline step that runs in an ephemeral container of the current Kubernetes Pod agent.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis returns thegetCommand()
joined with a space.List<org.csanchez.jenkins.plugins.kubernetes.model.TemplateEnvVar>
getImage()
getShell()
boolean
void
setAlwaysPullImage
(boolean alwaysPullImage) void
setCommand
(List<String> command) void
setCommandLine
(String command) Deprecated.void
setEnvVars
(List<org.csanchez.jenkins.plugins.kubernetes.model.TemplateEnvVar> envVars) void
setRunAsGroup
(String runAsGroup) void
setRunAsUser
(String runAsUser) void
void
setTargetContainer
(String targetContainer) org.jenkinsci.plugins.workflow.steps.StepExecution
start
(org.jenkinsci.plugins.workflow.steps.StepContext context) Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
EphemeralContainerStep
-
-
Method Details
-
getImage
-
getEnvVars
-
setEnvVars
@DataBoundSetter public void setEnvVars(List<org.csanchez.jenkins.plugins.kubernetes.model.TemplateEnvVar> envVars) -
getShell
-
setShell
-
getTargetContainer
-
setTargetContainer
-
isAlwaysPullImage
public boolean isAlwaysPullImage() -
setAlwaysPullImage
@DataBoundSetter public void setAlwaysPullImage(boolean alwaysPullImage) -
getRunAsUser
-
getRunAsUserLong
-
setRunAsUser
-
getRunAsGroup
-
getRunAsGroupLong
-
setRunAsGroup
-
getCommand
-
setCommand
-
setCommandLine
Deprecated.UsesetCommand(List)
for precise command construction. This setter is used by the snippet generator.- Parameters:
command
- full command line
-
getCommandLine
This returns thegetCommand()
joined with a space. It will not precisely round trip withsetCommandLine(String)
for example if one of the arguments contains a space.- Returns:
- the command args joined by a space
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) - Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.Step
-