Class NamedExceptionsBranchPropertyStrategy

    • Constructor Detail

      • NamedExceptionsBranchPropertyStrategy

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

      • getDefaultProperties

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