Class PodTemplateStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.csanchez.jenkins.plugins.kubernetes.pipeline.PodTemplateStep
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
,Serializable
public class PodTemplateStep
extends org.jenkinsci.plugins.workflow.steps.Step
implements Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getCloud()
int
getLabel()
getName()
int
getYaml()
boolean
boolean
boolean
void
setActiveDeadlineSeconds
(int activeDeadlineSeconds) void
setAgentContainer
(String agentContainer) void
setAgentInjection
(boolean agentInjection) void
setAnnotations
(List<PodAnnotation> annotations) void
void
setContainers
(List<ContainerTemplate> containers) void
setEnvVars
(List<TemplateEnvVar> envVars) void
setHostNetwork
(boolean hostNetwork) void
setIdleMinutes
(int idleMinutes) void
setImagePullSecrets
(List<String> imagePullSecrets) void
setInheritFrom
(String inheritFrom) void
setInheritYamlMergeStrategy
(boolean inheritYamlMergeStrategy) void
setInstanceCap
(Integer instanceCap) void
void
void
setNamespace
(String namespace) void
setNodeSelector
(String nodeSelector) void
setNodeUsageMode
(Node.Mode nodeUsageMode) void
setNodeUsageMode
(String nodeUsageMode) void
setPodRetention
(PodRetention podRetention) void
setRunAsGroup
(String runAsGroup) void
setRunAsUser
(String runAsUser) void
setSchedulerName
(String schedulerName) void
setServiceAccount
(String serviceAccount) void
setShowRawYaml
(boolean showRawYaml) void
setSlaveConnectTimeout
(int slaveConnectTimeout) void
setSupplementalGroups
(String supplementalGroups) void
setVolumes
(List<PodVolume> volumes) void
setWorkingDir
(String workingDir) void
setWorkspaceVolume
(WorkspaceVolume workspaceVolume) void
void
setYamlMergeStrategy
(YamlMergeStrategy yamlMergeStrategy) 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
-
PodTemplateStep
@DataBoundConstructor public PodTemplateStep()
-
-
Method Details
-
getLabel
-
setLabel
-
getName
-
setName
-
getNamespace
-
setNamespace
-
getCloud
-
setCloud
-
getInheritFrom
-
setInheritFrom
-
isAgentInjection
public boolean isAgentInjection() -
setAgentInjection
@DataBoundSetter public void setAgentInjection(boolean agentInjection) -
getAgentContainer
-
setAgentContainer
-
getContainers
-
setContainers
-
getEnvVars
-
setEnvVars
-
getYamlMergeStrategy
-
setYamlMergeStrategy
-
getVolumes
-
setVolumes
-
getWorkspaceVolume
-
setWorkspaceVolume
-
getInstanceCap
-
setInstanceCap
-
getIdleMinutes
public int getIdleMinutes() -
setIdleMinutes
@DataBoundSetter public void setIdleMinutes(@CheckForNull int idleMinutes) -
getSlaveConnectTimeout
@CheckForNull public int getSlaveConnectTimeout() -
setSlaveConnectTimeout
@DataBoundSetter public void setSlaveConnectTimeout(@CheckForNull int slaveConnectTimeout) -
getActiveDeadlineSeconds
@CheckForNull public int getActiveDeadlineSeconds() -
setActiveDeadlineSeconds
@DataBoundSetter public void setActiveDeadlineSeconds(@CheckForNull int activeDeadlineSeconds) -
getHostNetwork
-
setHostNetwork
@DataBoundSetter public void setHostNetwork(boolean hostNetwork) -
getServiceAccount
-
setServiceAccount
-
getSchedulerName
-
setSchedulerName
-
getNodeSelector
-
setNodeSelector
-
getNodeUsageMode
-
setNodeUsageMode
-
setNodeUsageMode
-
getWorkingDir
-
setWorkingDir
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception - Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.Step
- Throws:
Exception
-
getAnnotations
-
setAnnotations
-
getImagePullSecrets
-
setImagePullSecrets
-
getYaml
-
setYaml
-
getPodRetention
-
setPodRetention
-
isInheritYamlMergeStrategy
public boolean isInheritYamlMergeStrategy() -
setInheritYamlMergeStrategy
@DataBoundSetter public void setInheritYamlMergeStrategy(boolean inheritYamlMergeStrategy) -
isShowRawYaml
public boolean isShowRawYaml() -
setShowRawYaml
@DataBoundSetter public void setShowRawYaml(boolean showRawYaml) -
getRunAsUser
-
setRunAsUser
-
getRunAsGroup
-
setRunAsGroup
-
getSupplementalGroups
-
setSupplementalGroups
-