Class MergeRequestSCMHead

java.lang.Object
jenkins.scm.api.SCMHead
io.jenkins.plugins.gitlabbranchsource.MergeRequestSCMHead
All Implemented Interfaces:
Serializable, Comparable<jenkins.scm.api.SCMHead>, jenkins.scm.api.mixin.ChangeRequestSCMHead, jenkins.scm.api.mixin.ChangeRequestSCMHead2, jenkins.scm.api.mixin.SCMHeadMixin

public class MergeRequestSCMHead extends jenkins.scm.api.SCMHead implements jenkins.scm.api.mixin.ChangeRequestSCMHead2
See Also:
  • Constructor Details

    • MergeRequestSCMHead

      public MergeRequestSCMHead(@NonNull String name, long id, BranchSCMHead target, jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy strategy, jenkins.scm.api.SCMHeadOrigin origin, String originOwner, String originProjectPath, String originName, String title)
      Constructor.
      Parameters:
      id - the merge request id.
      name - the name of the head.
      target - the target of this merge request.
      strategy - the checkout strategy
      origin - the origin of the merge request
      originOwner - the name of the owner of the origin project
      originProjectPath - the name of the origin project path
      originName - the name of the branch in the origin project
      title - the title of the merge request
  • Method Details

    • getPronoun

      public String getPronoun()
      Overrides:
      getPronoun in class jenkins.scm.api.SCMHead
    • getCheckoutStrategy

      @NonNull public jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy getCheckoutStrategy()
      Specified by:
      getCheckoutStrategy in interface jenkins.scm.api.mixin.ChangeRequestSCMHead2
    • getOriginName

      @NonNull public String getOriginName()
      Specified by:
      getOriginName in interface jenkins.scm.api.mixin.ChangeRequestSCMHead2
    • getId

      @NonNull public String getId()
      Specified by:
      getId in interface jenkins.scm.api.mixin.ChangeRequestSCMHead
    • getTarget

      @NonNull public BranchSCMHead getTarget()
      Specified by:
      getTarget in interface jenkins.scm.api.mixin.ChangeRequestSCMHead
    • getOrigin

      @NonNull public jenkins.scm.api.SCMHeadOrigin getOrigin()
      Specified by:
      getOrigin in interface jenkins.scm.api.mixin.SCMHeadMixin
      Overrides:
      getOrigin in class jenkins.scm.api.SCMHead
    • getOriginOwner

      public String getOriginOwner()
    • getOriginProjectPath

      public String getOriginProjectPath()
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)