Class BackendConfiguration

All Implemented Interfaces:
ExtensionPoint, Describable<GlobalConfiguration>, Saveable, Loadable, OnMaster

@Extension public class BackendConfiguration extends GlobalConfiguration
Stores the URL of the FastAPI backend used by the chatbot and whether Jenkins starts it automatically.
  • Constructor Details

    • BackendConfiguration

      public BackendConfiguration()
  • Method Details

    • get

      public static BackendConfiguration get()
      Returns the Jenkins-wide backend configuration.
      Returns:
      the backend configuration singleton
    • getBackendUrl

      public String getBackendUrl()
      Returns the configured FastAPI backend URL.
      Returns:
      the configured backend URL
    • isAutoStartBackend

      public boolean isAutoStartBackend()
    • getBackendDirectory

      public String getBackendDirectory()
    • configure

      public boolean configure(org.kohsuke.stapler.StaplerRequest2 request, net.sf.json.JSONObject json) throws Descriptor.FormException
      Overrides:
      configure in class GlobalConfiguration
      Throws:
      Descriptor.FormException
    • doCheckBackendDirectory

      @POST public FormValidation doCheckBackendDirectory(@QueryParameter String value)