Class BitbucketWebhookTriggerImpl
java.lang.Object
hudson.triggers.Trigger<Job<?,?>>
com.atlassian.bitbucket.jenkins.internal.trigger.BitbucketWebhookTriggerImpl
- All Implemented Interfaces:
BitbucketWebhookTrigger,ExtensionPoint,Describable<Trigger<?>>
public class BitbucketWebhookTriggerImpl
extends Trigger<Job<?,?>>
implements BitbucketWebhookTrigger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class hudson.triggers.Trigger
Trigger.CronNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs the trigger applicable for the given webhook.booleanbooleanvoidvoidtrigger(BitbucketWebhookTriggerRequest triggerRequest) Methods inherited from class hudson.triggers.Trigger
all, checkTriggers, for_, getProjectAction, getProjectActions, getSpec, readResolve, run, stop, toString
-
Constructor Details
-
BitbucketWebhookTriggerImpl
@DataBoundConstructor public BitbucketWebhookTriggerImpl(boolean pullRequestTrigger, boolean refTrigger)
-
-
Method Details
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Trigger<?>>- Overrides:
getDescriptorin classTrigger<Job<?,?>>
-
isApplicableForEvent
Description copied from interface:BitbucketWebhookTriggerIs 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.- Specified by:
isApplicableForEventin interfaceBitbucketWebhookTrigger- Parameters:
event- the webhook as it was received- Returns:
- true if this trigger is applicable to the given webhook
-
isPullRequestTrigger
public boolean isPullRequestTrigger() -
isRefTrigger
public boolean isRefTrigger() -
start
-
trigger
- Specified by:
triggerin interfaceBitbucketWebhookTrigger
-