Class BranchDiscoveryTrait

  • All Implemented Interfaces:
    ExtensionPoint, Describable<jenkins.scm.api.trait.SCMSourceTrait>

    public class BranchDiscoveryTrait
    extends jenkins.scm.api.trait.SCMSourceTrait
    A Discovery trait for Git that will discover branches on the repository.
    Since:
    3.4.0
    • Constructor Detail

      • BranchDiscoveryTrait

        @DataBoundConstructor
        public BranchDiscoveryTrait()
        Constructor for stapler.
    • Method Detail

      • decorateContext

        protected void decorateContext​(jenkins.scm.api.trait.SCMSourceContext<?,​?> context)
        Overrides:
        decorateContext in class jenkins.scm.api.trait.SCMSourceTrait
      • includeCategory

        public boolean includeCategory​(@NonNull
                                       jenkins.scm.api.SCMHeadCategory category)
        Overrides:
        includeCategory in class jenkins.scm.api.trait.SCMSourceTrait