Class PullRequestSCMRevision

java.lang.Object
jenkins.scm.api.SCMRevision
jenkins.scm.api.mixin.ChangeRequestSCMRevision<PullRequestSCMHead>
com.cloudbees.jenkins.plugins.bitbucket.PullRequestSCMRevision
All Implemented Interfaces:
Serializable

public class PullRequestSCMRevision extends jenkins.scm.api.mixin.ChangeRequestSCMRevision<PullRequestSCMHead>
Revision of a pull request.
Since:
2.2.0
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    PullRequestSCMRevision(PullRequestSCMHead head, jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl target, jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl pull)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    boolean
    equivalent(jenkins.scm.api.mixin.ChangeRequestSCMRevision<?> o)
    jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl
    Gets the pull revision.
    jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl
     

    Methods inherited from class jenkins.scm.api.mixin.ChangeRequestSCMRevision

    equals, getTarget, hashCode, isMerge

    Methods inherited from class jenkins.scm.api.SCMRevision

    getHead, isDeterministic

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PullRequestSCMRevision

      public PullRequestSCMRevision(@NonNull PullRequestSCMHead head, @NonNull jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl target, @NonNull jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl pull)
      Constructor.
      Parameters:
      head - the head.
      target - the target revision.
      pull - the pull revision.
  • Method Details

    • getPull

      @NonNull @WithBridgeMethods(jenkins.scm.api.SCMRevision.class) public jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl getPull()
      Gets the pull revision.
      Returns:
      the pull revision.
    • equivalent

      public boolean equivalent(jenkins.scm.api.mixin.ChangeRequestSCMRevision<?> o)
      Specified by:
      equivalent in class jenkins.scm.api.mixin.ChangeRequestSCMRevision<PullRequestSCMHead>
    • getTargetImpl

      public jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl getTargetImpl()
    • _hashCode

      public int _hashCode()
      Specified by:
      _hashCode in class jenkins.scm.api.mixin.ChangeRequestSCMRevision<PullRequestSCMHead>
    • toString

      public String toString()
      Overrides:
      toString in class jenkins.scm.api.SCMRevision