Package io.jenkins.plugins.casc.core
Class CascKeepNode
- All Implemented Interfaces:
ExtensionPoint,Describable<NodeProperty<?>>,ReconfigurableDescribable<NodeProperty<?>>
Marker
NodeProperty that instructs the JCasc reload to preserve this node.
During a jenkins.yaml reload, JCasc reconciles the nodes: list by removing
every node that is not listed in the YAML. Nodes created dynamically at runtime (e.g.
by aquarium-gateway) are not in the YAML and would normally be deleted.
Attaching this property to a node signals JenkinsConfigurator.shouldKeepNode(hudson.model.Node) to treat it
like a cloud-provisioned node and skip it during reconciliation, so the node survives reloads
without needing to implement EphemeralNode or extend
AbstractCloudSlave.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.slaves.NodeProperty
node -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hudson.slaves.NodeProperty
all, buildEnvVars, canTake, canTake, for_, getDescriptor, reconfigure, reconfigure, setNode, setUp
-
Constructor Details
-
CascKeepNode
@DataBoundConstructor public CascKeepNode()
-