Package jenkins.plugins.git.traits
Class BranchDiscoveryTrait
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<T>
-
- jenkins.scm.api.trait.SCMTrait<jenkins.scm.api.trait.SCMSourceTrait>
-
- jenkins.scm.api.trait.SCMSourceTrait
-
- jenkins.plugins.git.traits.BranchDiscoveryTrait
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.scm.api.trait.SCMSourceTrait>
public class BranchDiscoveryTrait extends jenkins.scm.api.trait.SCMSourceTrait
ADiscovery
trait for Git that will discover branches on the repository.- Since:
- 3.4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BranchDiscoveryTrait.BranchSCMHeadAuthority
Trusts branches from the repository.static class
BranchDiscoveryTrait.DescriptorImpl
BranchDiscoveryTrait descriptor.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description BranchDiscoveryTrait()
Constructor for stapler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
decorateContext(jenkins.scm.api.trait.SCMSourceContext<?,?> context)
boolean
includeCategory(jenkins.scm.api.SCMHeadCategory category)
-
-
-
Method Detail
-
decorateContext
protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?,?> context)
- Overrides:
decorateContext
in classjenkins.scm.api.trait.SCMSourceTrait
-
includeCategory
public boolean includeCategory(@NonNull jenkins.scm.api.SCMHeadCategory category)
- Overrides:
includeCategory
in classjenkins.scm.api.trait.SCMSourceTrait
-
-