Class BitbucketWebhookMultibranchTrigger
- java.lang.Object
-
- hudson.triggers.Trigger<jenkins.branch.MultiBranchProject<?,?>>
-
- com.atlassian.bitbucket.jenkins.internal.trigger.BitbucketWebhookMultibranchTrigger
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Trigger<?>>
public class BitbucketWebhookMultibranchTrigger extends Trigger<jenkins.branch.MultiBranchProject<?,?>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BitbucketWebhookMultibranchTrigger.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.triggers.Trigger
Trigger.Cron
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description BitbucketWebhookMultibranchTrigger(boolean pullRequestTrigger, boolean refTrigger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitbucketWebhookMultibranchTrigger.DescriptorImpl
getDescriptor()
boolean
isApplicableForEventType(AbstractWebhookEvent event)
Is the trigger applicable for the given webhook.boolean
isPullRequestTrigger()
boolean
isRefTrigger()
-
Methods inherited from class hudson.triggers.Trigger
all, checkTriggers, for_, getProjectAction, getProjectActions, getSpec, readResolve, run, start, stop, toString
-
-
-
-
Method Detail
-
getDescriptor
public BitbucketWebhookMultibranchTrigger.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Trigger<?>>
- Overrides:
getDescriptor
in classTrigger<jenkins.branch.MultiBranchProject<?,?>>
-
isApplicableForEventType
public boolean isApplicableForEventType(AbstractWebhookEvent event)
Is the trigger applicable for the given webhook. If the trigger is configured for RefChange and the event is a PR opened event it should return false. The trigger should NOT trigger as a result of this call.- Parameters:
event
- the webhook as it was received- Returns:
- true if this trigger is applicable to the given webhook
- Since:
- 3.0.0
-
isPullRequestTrigger
public boolean isPullRequestTrigger()
-
isRefTrigger
public boolean isRefTrigger()
-
-