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>
  • Field Details

    • LOGGER

      public static final Logger LOGGER
  • Constructor Details

    • GitLabMergeRequestSCMEvent

      public GitLabMergeRequestSCMEvent(org.gitlab4j.api.webhook.MergeRequestEvent mrEvent, String origin)
  • Method Details

    • descriptionFor

      public String descriptionFor(@NonNull jenkins.scm.api.SCMNavigator navigator)
      Overrides:
      descriptionFor in class jenkins.scm.api.SCMHeadEvent<org.gitlab4j.api.webhook.MergeRequestEvent>
    • isMatch

      public boolean isMatch(@NonNull GitLabSCMNavigator navigator)
      Specified by:
      isMatch in class AbstractGitLabSCMHeadEvent<org.gitlab4j.api.webhook.MergeRequestEvent>
    • isMatch

      public boolean isMatch(@NonNull GitLabSCMSource source)
      Specified by:
      isMatch in class AbstractGitLabSCMHeadEvent<org.gitlab4j.api.webhook.MergeRequestEvent>
    • getSourceName

      @NonNull public String getSourceName()
      Specified by:
      getSourceName in class jenkins.scm.api.SCMHeadEvent<org.gitlab4j.api.webhook.MergeRequestEvent>
    • descriptionFor

      public String descriptionFor(@NonNull jenkins.scm.api.SCMSource source)
      Overrides:
      descriptionFor in class jenkins.scm.api.SCMHeadEvent<org.gitlab4j.api.webhook.MergeRequestEvent>
    • description

      public String description()
      Overrides:
      description in class jenkins.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 class AbstractGitLabSCMHeadEvent<org.gitlab4j.api.webhook.MergeRequestEvent>
    • getCause

      public GitLabWebHookCause getCause()
      Specified by:
      getCause in class AbstractGitLabSCMHeadEvent<org.gitlab4j.api.webhook.MergeRequestEvent>