Class VManagerChartsJobProperty.DescriptorImpl

All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
VManagerChartsJobProperty

@Extension @Symbol("vManagerCharts") public static class VManagerChartsJobProperty.DescriptorImpl extends OptionalJobProperty.OptionalJobPropertyDescriptor
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • getDisplayName

      @NonNull public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<JobProperty<?>>
    • isApplicable

      public boolean isApplicable(Class<? extends Job> jobType)
      Overrides:
      isApplicable in class JobPropertyDescriptor
    • doFillCredentialsIdItems

      @POST public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item item, @QueryParameter String credentialsId, @QueryParameter String serverUrl)
    • doCheckServerUrl

      @POST public FormValidation doCheckServerUrl(@QueryParameter String value)
    • doCheckCredentialsId

      @POST public FormValidation doCheckCredentialsId(@AncestorInPath Item item, @QueryParameter String value)
    • doFillSessionSourceItems

      @POST public ListBoxModel doFillSessionSourceItems()
    • doCheckMaxBuilds

      @POST public FormValidation doCheckMaxBuilds(@QueryParameter String value)
    • doExportConfig

      public void doExportConfig(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws Exception
      Exports the currently-edited (unsaved) plugin configuration as a downloadable JSON file. The browser POSTs the full job-config form tree (built via Jenkins' buildFormTree); we walk it to find the subtree that holds this plugin's fields, bind it to a transient VManagerChartsJobProperty, and serialize via JsonConfigLoader.toJson(VManagerChartsJobProperty). The credentialsId field is never included in the output.
      Throws:
      Exception