Class GitHubScmHeadEvent<T>
- java.lang.Object
-
- jenkins.scm.api.SCMEvent<P>
-
- jenkins.scm.api.SCMHeadEvent<T>
-
- com.github.kostyasha.github.integration.multibranch.hooks.GitHubScmHeadEvent<T>
-
- Direct Known Subclasses:
GitHubBranchSCMHeadEvent
,GitHubPullRequestScmHeadEvent
,GitHubTagSCMHeadEvent
public abstract class GitHubScmHeadEvent<T> extends jenkins.scm.api.SCMHeadEvent<T>
- Author:
- Kanstantsin Shautsou
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GitHubScmHeadEvent(jenkins.scm.api.SCMEvent.Type type, long timestamp, T payload, String origin)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getSourceName()
protected abstract String
getSourceRepo()
protected String
getSourceRepo(jenkins.scm.api.SCMSource source)
boolean
isMatch(SCM scm)
boolean
isMatch(jenkins.scm.api.SCMNavigator navigator)
boolean
isMatch(jenkins.scm.api.SCMSource source)
-
Methods inherited from class jenkins.scm.api.SCMHeadEvent
descriptionFor, descriptionFor, descriptionFor, filter, fireLater, fireNow, heads
-
-
-
-
Method Detail
-
getSourceRepo
@NonNull protected abstract String getSourceRepo()
-
isMatch
public boolean isMatch(@NonNull jenkins.scm.api.SCMSource source)
- Overrides:
isMatch
in classjenkins.scm.api.SCMHeadEvent<T>
-
getSourceName
@NonNull public String getSourceName()
- Specified by:
getSourceName
in classjenkins.scm.api.SCMHeadEvent<T>
-
getSourceRepo
@CheckForNull protected String getSourceRepo(@NonNull jenkins.scm.api.SCMSource source)
-
isMatch
public boolean isMatch(jenkins.scm.api.SCMNavigator navigator)
- Specified by:
isMatch
in classjenkins.scm.api.SCMHeadEvent<T>
-
-