Class BaseFiniteStateDescriptor

java.lang.Object
hudson.model.Descriptor<Publisher>
hudson.tasks.BuildStepDescriptor<Publisher>
io.jenkins.plugins.finitestate.BaseFiniteStateDescriptor
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Direct Known Subclasses:
FiniteStateAnalyzeBinaryRecorder.DescriptorImpl, FiniteStateSBOMImportRecorder.DescriptorImpl, FiniteStateThirdPartyImportRecorder.DescriptorImpl

public abstract class BaseFiniteStateDescriptor extends BuildStepDescriptor<Publisher>
Abstract base descriptor class for all Finite State recorders. Contains common descriptor functionality shared across different analysis types.
  • Constructor Details

    • BaseFiniteStateDescriptor

      protected BaseFiniteStateDescriptor()
  • Method Details

    • doFillApiTokenCredentialsIdItems

      public ListBoxModel doFillApiTokenCredentialsIdItems(@AncestorInPath Item item, @QueryParameter String apiTokenCredentialsId)
      Populate the dropdown for apiTokenCredentialsId from Jenkins credentials.
    • doFillPlatformItems

      public ListBoxModel doFillPlatformItems()
      Populate the platform/transport selector. The legacy platform (Java CLT) is listed first and is the default for jobs that never set the field, keeping existing pipelines working after an upgrade. See BaseFiniteStateRecorder and HELIX-422.
    • checkRequiredValue

      protected FormValidation checkRequiredValue(String value)
      Common validation helper for required values
    • doCheckSubdomain

      public FormValidation doCheckSubdomain(@AncestorInPath Item item, @QueryParameter String value) throws IOException, javax.servlet.ServletException
      Common subdomain validation
      Throws:
      IOException
      javax.servlet.ServletException
    • doCheckApiTokenCredentialsId

      public FormValidation doCheckApiTokenCredentialsId(@AncestorInPath Item item, @QueryParameter String value) throws IOException, javax.servlet.ServletException
      Common API token credentials validation
      Throws:
      IOException
      javax.servlet.ServletException
    • doCheckProjectName

      public FormValidation doCheckProjectName(@AncestorInPath Item item, @QueryParameter String value) throws IOException, javax.servlet.ServletException
      Common project name validation
      Throws:
      IOException
      javax.servlet.ServletException
    • isApplicable

      public boolean isApplicable(Class<? extends AbstractProject> aClass)
      Common applicability check
      Specified by:
      isApplicable in class BuildStepDescriptor<Publisher>