Class CascKeepNode

java.lang.Object
hudson.slaves.NodeProperty<Node>
io.jenkins.plugins.casc.core.CascKeepNode
All Implemented Interfaces:
ExtensionPoint, Describable<NodeProperty<?>>, ReconfigurableDescribable<NodeProperty<?>>

public class CascKeepNode extends NodeProperty<Node>
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.

  • Constructor Details

    • CascKeepNode

      @DataBoundConstructor public CascKeepNode()