Class KubernetesDeclarativeAgent
java.lang.Object
hudson.model.AbstractDescribableImpl<T>
org.jenkinsci.plugins.pipeline.modeldefinition.withscript.WithScriptDescribable<A>
org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent<A>
org.jenkinsci.plugins.pipeline.modeldefinition.agent.RetryableDeclarativeAgent<KubernetesDeclarativeAgent>
org.csanchez.jenkins.plugins.kubernetes.pipeline.KubernetesDeclarativeAgent
- All Implemented Interfaces:
ExtensionPoint
,Describable<KubernetesDeclarativeAgent>
,Serializable
public class KubernetesDeclarativeAgent
extends org.jenkinsci.plugins.pipeline.modeldefinition.agent.RetryableDeclarativeAgent<KubernetesDeclarativeAgent>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent
org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent.CheckoutScriptAllowlist
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent
doCheckout, inStage, subdirectory
-
Constructor Summary
ConstructorDescriptionKubernetesDeclarativeAgent
(String label, ContainerTemplate containerTemplate) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionint
getCloud()
Deprecated.int
int
getLabel()
int
getYaml()
boolean
boolean
void
setActiveDeadlineSeconds
(int activeDeadlineSeconds) void
setAgentContainer
(String agentContainer) void
setAgentInjection
(boolean agentInjection) void
void
setContainerTemplate
(ContainerTemplate containerTemplate) void
setContainerTemplates
(List<ContainerTemplate> containerTemplates) void
setCustomWorkspace
(String customWorkspace) void
setDefaultContainer
(String defaultContainer) void
setIdleMinutes
(int idleMinutes) void
setInheritFrom
(String inheritFrom) void
setInheritYamlMergeStrategy
(boolean inheritYamlMergeStrategy) void
setInstanceCap
(int instanceCap) void
void
setNamespace
(String namespace) void
setNodeSelector
(String nodeSelector) void
setPodRetention
(PodRetention podRetention) void
setSchedulerName
(String schedulerName) void
setServiceAccount
(String serviceAccount) void
setShowRawYaml
(Boolean showRawYaml) void
setSlaveConnectTimeout
(int slaveConnectTimeout) void
setSupplementalGroups
(String supplementalGroups) void
setWorkingDir
(String workingDir) void
setWorkspaceVolume
(WorkspaceVolume workspaceVolume) void
void
setYamlFile
(String yamlFile) void
setYamlMergeStrategy
(YamlMergeStrategy yamlMergeStrategy) Methods inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.agent.RetryableDeclarativeAgent
getRetries, setRetries
Methods inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent
copyFlags, getDescriptor, getScript, getSubdirectory, hasScmContext, initialize, isDoCheckout, isInStage, reuseRootAgent, setDoCheckout, setInStage, setSubdirectory
-
Constructor Details
-
KubernetesDeclarativeAgent
@DataBoundConstructor public KubernetesDeclarativeAgent() -
KubernetesDeclarativeAgent
Deprecated.
-
-
Method Details
-
getLabel
-
getLabelExpression
-
setLabel
-
getCustomWorkspace
-
setCustomWorkspace
-
getCloud
-
setCloud
-
getIdleMinutes
public int getIdleMinutes() -
setIdleMinutes
@DataBoundSetter public void setIdleMinutes(int idleMinutes) -
getInheritFrom
-
setInheritFrom
-
getInstanceCap
public int getInstanceCap() -
setInstanceCap
@DataBoundSetter public void setInstanceCap(int instanceCap) -
getServiceAccount
-
setServiceAccount
-
getSchedulerName
-
setSchedulerName
-
getNodeSelector
-
setNodeSelector
-
getNamespace
-
setNamespace
-
getWorkingDir
-
setWorkingDir
-
getYaml
-
setYaml
-
getContainerTemplate
Deprecated. -
setContainerTemplate
@DataBoundSetter @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public void setContainerTemplate(ContainerTemplate containerTemplate) -
getContainerTemplates
-
setContainerTemplates
-
getDefaultContainer
-
setDefaultContainer
-
getActiveDeadlineSeconds
public int getActiveDeadlineSeconds() -
setActiveDeadlineSeconds
@DataBoundSetter public void setActiveDeadlineSeconds(int activeDeadlineSeconds) -
getSlaveConnectTimeout
public int getSlaveConnectTimeout() -
setSlaveConnectTimeout
@DataBoundSetter public void setSlaveConnectTimeout(int slaveConnectTimeout) -
getPodRetention
-
setPodRetention
-
getYamlFile
-
setShowRawYaml
-
getShowRawYaml
-
setYamlFile
-
getYamlMergeStrategy
-
setYamlMergeStrategy
-
isInheritYamlMergeStrategy
public boolean isInheritYamlMergeStrategy() -
setInheritYamlMergeStrategy
@DataBoundSetter public void setInheritYamlMergeStrategy(boolean inheritYamlMergeStrategy) -
getWorkspaceVolume
-
setWorkspaceVolume
-
setSupplementalGroups
-
getSupplementalGroups
-
getAgentContainer
-
setAgentContainer
-
isAgentInjection
@CheckForNull public boolean isAgentInjection() -
setAgentInjection
@DataBoundSetter public void setAgentInjection(boolean agentInjection) -
getAsArgs
-