Class BuildChooserDescriptor

java.lang.Object
hudson.model.Descriptor<BuildChooser>
hudson.plugins.git.util.BuildChooserDescriptor
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Direct Known Subclasses:
AncestryBuildChooser.DescriptorImpl, DefaultBuildChooser.DescriptorImpl, InverseBuildChooser.DescriptorImpl

public abstract class BuildChooserDescriptor extends Descriptor<BuildChooser>
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • BuildChooserDescriptor

      public BuildChooserDescriptor()
  • Method Details

    • getLegacyId

      public String getLegacyId()
      Before this extension point was formalized, existing BuildChoosers had a hard-coded ID name used for the persistence. This method returns those legacy ID, if any, to keep compatibility with existing data.
      Returns:
      legacy ID, if any, to keep compatibility with existing data.
    • all

    • isApplicable

      public boolean isApplicable(Class<? extends Item> job)
      Returns true if this build chooser is applicable to the given job type.
      Parameters:
      job - the type of job or item.
      Returns:
      true to allow user to select this build chooser.