Class DefaultBranchPropertyStrategy

All Implemented Interfaces:
ExtensionPoint, Describable<BranchPropertyStrategy>

public class DefaultBranchPropertyStrategy extends BranchPropertyStrategy
A very simple BranchPropertyStrategy that just returns the same set of properties for all SCMHead instances.
Author:
Stephen Connolly
  • Constructor Details

    • DefaultBranchPropertyStrategy

      @DataBoundConstructor public DefaultBranchPropertyStrategy(@CheckForNull BranchProperty[] props)
      Stapler's constructor.
      Parameters:
      props - the properties.
  • Method Details

    • getProps

      @NonNull public List<BranchProperty> getProps()
      Gets the properties.
      Returns:
      the properties.
    • 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.