Class AbstractDockerAgent<D extends AbstractDockerAgent<D>>
java.lang.Object
hudson.model.AbstractDescribableImpl<T>
org.jenkinsci.plugins.pipeline.modeldefinition.withscript.WithScriptDescribable<A>
org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent<D>
org.jenkinsci.plugins.docker.workflow.declarative.AbstractDockerAgent<D>
- All Implemented Interfaces:
ExtensionPoint
,Describable<D>
,Serializable
- Direct Known Subclasses:
DockerPipeline
,DockerPipelineFromDockerfile
public abstract class AbstractDockerAgent<D extends AbstractDockerAgent<D>>
extends org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent<D>
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AbstractDockerPipelineScript.groovy is a superclass of the Groovy scripts for subclasses ofAbstractDockerAgent
, but does not have any direct equivalent Java class, so we just allow it here.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
Modifier and TypeFieldDescriptionprotected String
protected boolean
protected String
protected String
protected String
protected String
protected boolean
Fields inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent
doCheckout, inStage, subdirectory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetArgs()
getLabel()
boolean
void
initialize
(Map<String, org.jenkinsci.plugins.pipeline.modeldefinition.options.DeclarativeOption> options, boolean explicitAgentInStage) boolean
boolean
reuseRootAgent
(Map<String, org.jenkinsci.plugins.pipeline.modeldefinition.options.DeclarativeOption> options) void
void
setContainerPerStageRoot
(boolean containerPerStageRoot) void
setCustomWorkspace
(String customWorkspace) void
void
setRegistryCredentialsId
(String registryCredentialsId) void
setRegistryUrl
(String registryUrl) void
setReuseNode
(boolean reuseNode) Methods inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent
copyFlags, getDescriptor, getScript, getSubdirectory, hasScmContext, isDoCheckout, isInStage, setDoCheckout, setInStage, setSubdirectory
-
Field Details
-
label
-
args
-
registryUrl
-
registryCredentialsId
-
customWorkspace
-
reuseNode
protected boolean reuseNode -
containerPerStageRoot
protected boolean containerPerStageRoot
-
-
Constructor Details
-
AbstractDockerAgent
public AbstractDockerAgent()
-
-
Method Details
-
getRegistryUrl
-
setRegistryUrl
-
getRegistryCredentialsId
-
setRegistryCredentialsId
-
getReuseNode
public boolean getReuseNode() -
setReuseNode
@DataBoundSetter public void setReuseNode(boolean reuseNode) -
getLabel
-
setLabel
-
getCustomWorkspace
-
setCustomWorkspace
-
getArgs
-
setArgs
-
isContainerPerStageRoot
public boolean isContainerPerStageRoot() -
setContainerPerStageRoot
@DataBoundSetter public void setContainerPerStageRoot(boolean containerPerStageRoot) -
initialize
public void initialize(Map<String, org.jenkinsci.plugins.pipeline.modeldefinition.options.DeclarativeOption> options, boolean explicitAgentInStage) - Overrides:
initialize
in classorg.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent<D extends AbstractDockerAgent<D>>
-
reuseRootAgent
public boolean reuseRootAgent(Map<String, org.jenkinsci.plugins.pipeline.modeldefinition.options.DeclarativeOption> options) - Overrides:
reuseRootAgent
in classorg.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent<D extends AbstractDockerAgent<D>>
-