Class OriginMergeRequestDiscoveryTrait
java.lang.Object
hudson.model.AbstractDescribableImpl<T>
jenkins.scm.api.trait.SCMTrait<jenkins.scm.api.trait.SCMSourceTrait>
jenkins.scm.api.trait.SCMSourceTrait
io.jenkins.plugins.gitlabbranchsource.OriginMergeRequestDiscoveryTrait
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.scm.api.trait.SCMSourceTrait>
public class OriginMergeRequestDiscoveryTrait
extends jenkins.scm.api.trait.SCMSourceTrait
A
Discovery
trait for GitLab that will discover merge requests originating from a branch
in the repository itself.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Our descriptorstatic class
ASCMHeadAuthority
that trusts origin merge requestsNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionOriginMergeRequestDiscoveryTrait
(int strategyId) Constructor for stapler.OriginMergeRequestDiscoveryTrait
(Set<jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy> strategies) Constructor for programmatic instantiation. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
decorateContext
(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) Set<jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy>
Returns the strategies.int
Gets the strategy id.boolean
includeCategory
(jenkins.scm.api.SCMHeadCategory category) 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
-
OriginMergeRequestDiscoveryTrait
@DataBoundConstructor public OriginMergeRequestDiscoveryTrait(int strategyId) Constructor for stapler.- Parameters:
strategyId
- the strategy id.
-
OriginMergeRequestDiscoveryTrait
public OriginMergeRequestDiscoveryTrait(Set<jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy> strategies) Constructor for programmatic instantiation.- Parameters:
strategies
- theChangeRequestCheckoutStrategy
instances.
-
-
Method Details
-
getStrategyId
public int getStrategyId()Gets the strategy id.- Returns:
- the strategy id.
-
getStrategies
Returns the strategies.- Returns:
- the strategies.
-
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
-