public class PullRequestSCMRevision extends jenkins.scm.api.mixin.ChangeRequestSCMRevision<PullRequestSCMHead>
Constructor and Description |
---|
PullRequestSCMRevision(PullRequestSCMHead head,
String baseHash,
String pullHash) |
Modifier and Type | Method and Description |
---|---|
int |
_hashCode() |
boolean |
equivalent(jenkins.scm.api.mixin.ChangeRequestSCMRevision<?> o) |
String |
getBaseHash()
The commit hash of the base branch we are tracking.
|
String |
getMergeHash()
The commit hash of the head of the pull request branch.
|
String |
getPullHash()
The commit hash of the head of the pull request branch.
|
String |
toString() |
equals, getTarget, hashCode, isMerge
getHead, isDeterministic
public PullRequestSCMRevision(@NonNull PullRequestSCMHead head, @NonNull String baseHash, @NonNull String pullHash)
@NonNull public String getBaseHash()
ChangeRequestSCMHead2.getCheckoutStrategy()
ChangeRequestCheckoutStrategy.MERGE
, this
would be the current head of the base branch.
Otherwise it would be the PR’s .base.sha
, the common ancestor of the PR branch and the base branch.@Exported @NonNull public String getPullHash()
@CheckForNull public String getMergeHash()
public boolean equivalent(jenkins.scm.api.mixin.ChangeRequestSCMRevision<?> o)
equivalent
in class jenkins.scm.api.mixin.ChangeRequestSCMRevision<PullRequestSCMHead>
public int _hashCode()
_hashCode
in class jenkins.scm.api.mixin.ChangeRequestSCMRevision<PullRequestSCMHead>
public String toString()
toString
in class jenkins.scm.api.SCMRevision
Copyright © 2016–2020. All rights reserved.