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
ConstructorDescriptionPullRequestSCMRevision
(PullRequestSCMHead head, jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl target, jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl pull) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
equivalent
(jenkins.scm.api.mixin.ChangeRequestSCMRevision<?> o) jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl
getPull()
Gets the pull revision.jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl
toString()
Methods inherited from class jenkins.scm.api.mixin.ChangeRequestSCMRevision
equals, getTarget, hashCode, isMerge
Methods inherited from class jenkins.scm.api.SCMRevision
getHead, isDeterministic
-
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 classjenkins.scm.api.mixin.ChangeRequestSCMRevision<PullRequestSCMHead>
-
getTargetImpl
public jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl getTargetImpl() -
_hashCode
public int _hashCode()- Specified by:
_hashCode
in classjenkins.scm.api.mixin.ChangeRequestSCMRevision<PullRequestSCMHead>
-
toString
- Overrides:
toString
in classjenkins.scm.api.SCMRevision
-