Class DefaultBranchPropertyStrategy

    • Constructor Detail

      • DefaultBranchPropertyStrategy

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

      • 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.