Package hudson.ivy

Class IvyReporterDescriptor

java.lang.Object
hudson.model.Descriptor<IvyReporter>
hudson.ivy.IvyReporterDescriptor
All Implemented Interfaces:
Saveable, Loadable, OnMaster

public abstract class IvyReporterDescriptor extends Descriptor<IvyReporter>
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • IvyReporterDescriptor

      protected IvyReporterDescriptor(Class<? extends IvyReporter> clazz)
    • IvyReporterDescriptor

      protected IvyReporterDescriptor()
      Infers the type of the corresponding Describable from the outer class. This version works when you follow the common convention, where a descriptor is written as the static nested class of the describable class.
      Since:
      1.278
  • Method Details

    • newAutoInstance

      public IvyReporter newAutoInstance(IvyModule module)
      Returns an instance used for automatic IvyReporter activation.

      Some IvyReporters, such as IvyArtifactArchiver, can work just with the configuration in the Ivy descriptor and don't need any additional Jenkins configuration. They also don't need any explicit enabling/disabling as they can activate themselves by listening to the callback from the build (for example javadoc archiver can do the work in response to the execution of the javadoc target.)

      Those IvyReporters should return a valid instance from this method. Such instance will then participate into the build and receive event callbacks.

    • newInstance

      public IvyReporter newInstance(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) throws Descriptor.FormException
      If the reporter has no configuration screen, this method can safely return null, which is the default implementation.
      Overrides:
      newInstance in class Descriptor<IvyReporter>
      Throws:
      Descriptor.FormException
    • hasConfigScreen

      public final boolean hasConfigScreen()
      Returns true if this descriptor has config.jelly.
    • all

      public static Collection<IvyReporterDescriptor> all()
      Lists all the currently registered instances of IvyReporterDescriptor.