Class SwarmDeclarativeAgent.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<SwarmDeclarativeAgent>
org.jenkinsci.plugins.pipeline.modeldefinition.withscript.WithScriptDescriptor<SwarmDeclarativeAgent>
org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgentDescriptor<SwarmDeclarativeAgent>
io.jenkins.plugins.swarmcloud.pipeline.SwarmDeclarativeAgent.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
SwarmDeclarativeAgent

@OptionalExtension(requirePlugins="pipeline-model-extensions") @Symbol("swarmAgent") public static class SwarmDeclarativeAgent.DescriptorImpl extends org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgentDescriptor<SwarmDeclarativeAgent>
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • getDisplayName

      @NonNull public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<SwarmDeclarativeAgent>
    • doFillCloudItems

      @POST public ListBoxModel doFillCloudItems(@AncestorInPath @Nullable Item item)
      Populates the "Cloud" dropdown in the declarative agent UI.

      Annotated with POST and gated on Item.READ (or Jenkins.READ when invoked outside a job context) to satisfy Jenkins security best practices: callers without read access to the surrounding item get an empty dropdown rather than a glimpse at the configured cloud names. See CodeQL rules jenkins/csrf and jenkins/no-permission-check.