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
Nested ClassesModifier and TypeClassDescriptionstatic classAbstractDockerPipelineScript.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.static final classNested classes/interfaces inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent
org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent.CheckoutScriptAllowlistNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanFields inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent
doCheckout, inStage, subdirectory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArgs()getLabel()booleanvoidinitialize(Map<String, org.jenkinsci.plugins.pipeline.modeldefinition.options.DeclarativeOption> options, boolean explicitAgentInStage) booleanbooleanreuseRootAgent(Map<String, org.jenkinsci.plugins.pipeline.modeldefinition.options.DeclarativeOption> options) voidvoidsetContainerPerStageRoot(boolean containerPerStageRoot) voidsetCustomWorkspace(String customWorkspace) voidvoidsetRegistryCredentialsId(String registryCredentialsId) voidsetRegistryUrl(String registryUrl) voidsetReuseNode(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:
initializein 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:
reuseRootAgentin classorg.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent<D extends AbstractDockerAgent<D>>
-