Class GitHubPREvent
java.lang.Object
hudson.model.AbstractDescribableImpl<GitHubPREvent>
org.jenkinsci.plugins.github.pullrequest.events.GitHubPREvent
- All Implemented Interfaces:
ExtensionPoint,Describable<GitHubPREvent>
- Direct Known Subclasses:
GitHubPRCloseEvent,GitHubPRCommentEvent,GitHubPRCommitEvent,GitHubPRDescriptionEvent,GitHubPRLabelAddedEvent,GitHubPRLabelExistsEvent,GitHubPRLabelNotExistsEvent,GitHubPRLabelPatternExistsEvent,GitHubPRLabelRemovedEvent,GitHubPRNonMergeableEvent,GitHubPRNumber,GitHubPROpenEvent
public abstract class GitHubPREvent
extends AbstractDescribableImpl<GitHubPREvent>
implements ExtensionPoint
Extension point for various GH PR events that may trigger run.
- Author:
- Kanstantsin Shautsou
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheck(GitHubPRDecisionContext prDecisionContext) indicates that PR was changedcheckHook(GitHubPRTrigger gitHubPRTrigger, org.kohsuke.github.GHEventPayload payload, TaskListener listener) Check that is used for lightweight hooks (pure GitHub hooks).
-
Constructor Details
-
GitHubPREvent
public GitHubPREvent()
-
-
Method Details
-
check
@CheckForNull public GitHubPRCause check(@NonNull GitHubPRDecisionContext prDecisionContext) throws IOException indicates that PR was changed- Returns:
- cause object. null when no influence (other events will be checked. If cause.isSkip() == true, then other checks wouldn't influence. And triggering for this branch will be skipped. If cause.isSkip() == false, indicates that branch build should be run.
- Throws:
IOException
-
checkHook
public GitHubPRCause checkHook(GitHubPRTrigger gitHubPRTrigger, org.kohsuke.github.GHEventPayload payload, TaskListener listener) Check that is used for lightweight hooks (pure GitHub hooks). -
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<GitHubPREvent>- Overrides:
getDescriptorin classAbstractDescribableImpl<GitHubPREvent>
-