Package com.cloudogu.scmmanager.scm
Class PullRequestDiscoveryTrait
java.lang.Object
hudson.model.AbstractDescribableImpl<T>
jenkins.scm.api.trait.SCMTrait<jenkins.scm.api.trait.SCMSourceTrait>
jenkins.scm.api.trait.SCMSourceTrait
com.cloudogu.scmmanager.scm.PullRequestDiscoveryTrait
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.scm.api.trait.SCMSourceTrait>
public class PullRequestDiscoveryTrait
extends jenkins.scm.api.trait.SCMSourceTrait
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionConstructor for old versions of this trait, which does not have the excludeBranchesWithPRs option.PullRequestDiscoveryTrait
(boolean excludeBranchesWithPRs) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
decorateContext
(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) protected boolean
includeCategory
(jenkins.scm.api.SCMHeadCategory category) boolean
Methods inherited from class jenkins.scm.api.trait.SCMSourceTrait
_for, _for, all, applyToBuilder, applyToContext, applyToObserver, decorateBuilder, decorateObserver, getDescriptor, isCategoryEnabled
Methods inherited from class jenkins.scm.api.trait.SCMTrait
asSetList, asSetList, find
-
Constructor Details
-
PullRequestDiscoveryTrait
@DataBoundConstructor public PullRequestDiscoveryTrait(boolean excludeBranchesWithPRs) -
PullRequestDiscoveryTrait
public PullRequestDiscoveryTrait()Constructor for old versions of this trait, which does not have the excludeBranchesWithPRs option.
-
-
Method Details
-
isExcludeBranchesWithPRs
public boolean isExcludeBranchesWithPRs() -
decorateContext
protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) - Overrides:
decorateContext
in classjenkins.scm.api.trait.SCMSourceTrait
-
includeCategory
protected boolean includeCategory(@NonNull jenkins.scm.api.SCMHeadCategory category) - Overrides:
includeCategory
in classjenkins.scm.api.trait.SCMSourceTrait
-