Class NamedExceptionsBranchPropertyStrategy

All Implemented Interfaces:
ExtensionPoint, Describable<BranchPropertyStrategy>

public class NamedExceptionsBranchPropertyStrategy extends BranchPropertyStrategy
Allows named branches to get different properties from the rest.
Author:
Stephen Connolly
  • Constructor Details

    • NamedExceptionsBranchPropertyStrategy

      @DataBoundConstructor public NamedExceptionsBranchPropertyStrategy(@CheckForNull BranchProperty[] defaultProperties, @CheckForNull NamedExceptionsBranchPropertyStrategy.Named[] namedExceptions)
      Stapler's constructor.
      Parameters:
      defaultProperties - the properties.
      namedExceptions - the named exceptions.
  • Method Details

    • getDefaultProperties

      @NonNull public List<BranchProperty> getDefaultProperties()
      Gets the default properties.
      Returns:
      the default properties.
    • getNamedExceptions

      @NonNull public List<NamedExceptionsBranchPropertyStrategy.Named> getNamedExceptions()
      Gets the named exceptions to the defaults.
      Returns:
      the named exceptions to the defaults.
    • getPropertiesFor

      @NonNull public List<BranchProperty> getPropertiesFor(jenkins.scm.api.SCMHead head)
      Returns the list of properties to be injected into the Branch for the specified SCMHead.
      Specified by:
      getPropertiesFor in class BranchPropertyStrategy
      Parameters:
      head - the SCMHead
      Returns:
      the list of properties.