Class GitLabMergeRequestSCMEvent
- java.lang.Object
-
- jenkins.scm.api.SCMEvent<P>
-
- jenkins.scm.api.SCMHeadEvent<E>
-
- io.jenkins.plugins.gitlabbranchsource.AbstractGitLabSCMHeadEvent<org.gitlab4j.api.webhook.MergeRequestEvent>
-
- io.jenkins.plugins.gitlabbranchsource.GitLabMergeRequestSCMEvent
-
- Direct Known Subclasses:
GitLabMergeRequestTrigger
public class GitLabMergeRequestSCMEvent extends AbstractGitLabSCMHeadEvent<org.gitlab4j.api.webhook.MergeRequestEvent>
-
-
Constructor Summary
Constructors Constructor Description GitLabMergeRequestSCMEvent(org.gitlab4j.api.webhook.MergeRequestEvent mrEvent, String origin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
description()
String
descriptionFor(jenkins.scm.api.SCMNavigator navigator)
String
descriptionFor(jenkins.scm.api.SCMSource source)
GitLabWebHookCause
getCause()
String
getSourceName()
Map<jenkins.scm.api.SCMHead,jenkins.scm.api.SCMRevision>
headsFor(GitLabSCMSource source)
boolean
isMatch(GitLabSCMNavigator navigator)
boolean
isMatch(GitLabSCMSource source)
-
Methods inherited from class io.jenkins.plugins.gitlabbranchsource.AbstractGitLabSCMHeadEvent
heads, isMatch, isMatch, isMatch
-
Methods inherited from class jenkins.scm.api.SCMHeadEvent
descriptionFor, filter, fireLater, fireNow
-
-
-
-
Field Detail
-
LOGGER
public static final Logger LOGGER
-
-
Constructor Detail
-
GitLabMergeRequestSCMEvent
public GitLabMergeRequestSCMEvent(org.gitlab4j.api.webhook.MergeRequestEvent mrEvent, String origin)
-
-
Method Detail
-
descriptionFor
public String descriptionFor(@NonNull jenkins.scm.api.SCMNavigator navigator)
- Overrides:
descriptionFor
in classjenkins.scm.api.SCMHeadEvent<org.gitlab4j.api.webhook.MergeRequestEvent>
-
isMatch
public boolean isMatch(@NonNull GitLabSCMNavigator navigator)
- Specified by:
isMatch
in classAbstractGitLabSCMHeadEvent<org.gitlab4j.api.webhook.MergeRequestEvent>
-
isMatch
public boolean isMatch(@NonNull GitLabSCMSource source)
- Specified by:
isMatch
in classAbstractGitLabSCMHeadEvent<org.gitlab4j.api.webhook.MergeRequestEvent>
-
getSourceName
@NonNull public String getSourceName()
- Specified by:
getSourceName
in classjenkins.scm.api.SCMHeadEvent<org.gitlab4j.api.webhook.MergeRequestEvent>
-
descriptionFor
public String descriptionFor(@NonNull jenkins.scm.api.SCMSource source)
- Overrides:
descriptionFor
in classjenkins.scm.api.SCMHeadEvent<org.gitlab4j.api.webhook.MergeRequestEvent>
-
description
public String description()
- Overrides:
description
in classjenkins.scm.api.SCMEvent<org.gitlab4j.api.webhook.MergeRequestEvent>
-
headsFor
@NonNull public Map<jenkins.scm.api.SCMHead,jenkins.scm.api.SCMRevision> headsFor(GitLabSCMSource source)
- Specified by:
headsFor
in classAbstractGitLabSCMHeadEvent<org.gitlab4j.api.webhook.MergeRequestEvent>
-
getCause
public GitLabWebHookCause getCause()
- Specified by:
getCause
in classAbstractGitLabSCMHeadEvent<org.gitlab4j.api.webhook.MergeRequestEvent>
-
-