Class IssueCommentGHEventSubscriber
java.lang.Object
org.jenkinsci.plugins.github.extension.GHEventsSubscriber
com.adobe.jenkins.github_pr_comment_build.BasePRGHEventSubscriber<TriggerPRCommentBranchProperty,String>
com.adobe.jenkins.github_pr_comment_build.IssueCommentGHEventSubscriber
- All Implemented Interfaces:
ExtensionPoint
@Extension
public class IssueCommentGHEventSubscriber
extends BasePRGHEventSubscriber<TriggerPRCommentBranchProperty,String>
This subscriber manages
GHEvent
ISSUE_COMMENT.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class com.adobe.jenkins.github_pr_comment_build.BasePRGHEventSubscriber
REPOSITORY_NAME_PATTERN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<org.kohsuke.github.GHEvent>
events()
protected Class<TriggerPRCommentBranchProperty>
protected void
Handles comments on pull requests.protected void
postStartJob
(TriggerPRCommentBranchProperty branchProp, Job<?, ?> job, String payload) Called after a job is started successfully, may be used for adding reactions or performing other actions.Methods inherited from class com.adobe.jenkins.github_pr_comment_build.BasePRGHEventSubscriber
checkAndRunJobs, getChangedRepository, getRepoUrl, isApplicable
Methods inherited from class org.jenkinsci.plugins.github.extension.GHEventsSubscriber
all, extractEvents, isApplicable, isApplicableFor, isApplicableFor, isInterestedIn, onEvent, processEvent, processEvent
-
Constructor Details
-
IssueCommentGHEventSubscriber
public IssueCommentGHEventSubscriber()
-
-
Method Details
-
getTriggerClass
- Specified by:
getTriggerClass
in classBasePRGHEventSubscriber<TriggerPRCommentBranchProperty,
String>
-
events
- Specified by:
events
in classorg.jenkinsci.plugins.github.extension.GHEventsSubscriber
-
postStartJob
protected void postStartJob(TriggerPRCommentBranchProperty branchProp, Job<?, ?> job, String payload) Description copied from class:BasePRGHEventSubscriber
Called after a job is started successfully, may be used for adding reactions or performing other actions.- Overrides:
postStartJob
in classBasePRGHEventSubscriber<TriggerPRCommentBranchProperty,
String> - Parameters:
branchProp
- the branch propertyjob
- the jobpayload
- an arbitrary parameter
-
onEvent
Handles comments on pull requests.- Overrides:
onEvent
in classorg.jenkinsci.plugins.github.extension.GHEventsSubscriber
- Parameters:
event
- only ISSUE_COMMENT eventpayload
- payload of gh-event. Never blank
-