Class GHSubscriberEvent
java.lang.Object
jenkins.scm.api.SCMEvent<String>
org.jenkinsci.plugins.github.extension.GHSubscriberEvent
An event for a
GHEventsSubscriber.- Since:
- 1.26.0
-
Nested Class Summary
Nested classes/interfaces inherited from class jenkins.scm.api.SCMEvent
jenkins.scm.api.SCMEvent.Dispatcher<E extends jenkins.scm.api.SCMEvent<?>>, jenkins.scm.api.SCMEvent.EventQueueMetrics, jenkins.scm.api.SCMEvent.Type -
Field Summary
Fields inherited from class jenkins.scm.api.SCMEvent
ORIGIN_UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionGHSubscriberEvent(String eventGuid, String origin, org.kohsuke.github.GHEvent ghEvent, String payload) Constructs a newGHSubscriberEvent.GHSubscriberEvent(String origin, org.kohsuke.github.GHEvent ghEvent, String payload) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.github.GHEventGets the type of event received.Methods inherited from class jenkins.scm.api.SCMEvent
asCauses, closeExecutorService, description, equals, executorService, getDate, getEventProcessingMetrics, getOrigin, getPayload, getTimestamp, getType, hashCode, originOf, originOf, toString
-
Constructor Details
-
GHSubscriberEvent
@Deprecated public GHSubscriberEvent(@CheckForNull String origin, @NonNull org.kohsuke.github.GHEvent ghEvent, @NonNull String payload) Deprecated.useGHSubscriberEvent(String, String, GHEvent, String)instead. -
GHSubscriberEvent
public GHSubscriberEvent(@CheckForNull String eventGuid, @CheckForNull String origin, @NonNull org.kohsuke.github.GHEvent ghEvent, @NonNull String payload) Constructs a newGHSubscriberEvent.- Parameters:
eventGuid- the globally unique identifier (GUID) to identify the event; value of request headerGitHubWebHook.X_GITHUB_DELIVERY.origin- the origin (seeSCMEvent.originOf(HttpServletRequest)) ornull.ghEvent- the type of event received from GitHub.payload- the event payload.
-
-
Method Details
-
getGHEvent
public org.kohsuke.github.GHEvent getGHEvent()Gets the type of event received.- Returns:
- the type of event received.
-
getEventGuid
-
GHSubscriberEvent(String, String, GHEvent, String)instead.