Class PullRequestSCMHead
java.lang.Object
jenkins.scm.api.SCMHead
org.jenkinsci.plugins.github_branch_source.PullRequestSCMHead
- All Implemented Interfaces:
Serializable
,Comparable<jenkins.scm.api.SCMHead>
,jenkins.scm.api.mixin.ChangeRequestSCMHead
,jenkins.scm.api.mixin.ChangeRequestSCMHead2
,jenkins.scm.api.mixin.SCMHeadMixin
- Direct Known Subclasses:
PullRequestSCMHead.FixMetadata
,PullRequestSCMHead.FixOrigin
public class PullRequestSCMHead
extends jenkins.scm.api.SCMHead
implements jenkins.scm.api.mixin.ChangeRequestSCMHead2
Head corresponding to a pull request. Named like
PR-123
or PR-123-merge
or
PR-123-head
.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated.used for data migration.static class
Deprecated.used for data migration.static class
Deprecated.used for data migration.static class
Deprecated.used for data migration.Nested classes/interfaces inherited from class jenkins.scm.api.SCMHead
jenkins.scm.api.SCMHead.HeadByItem
Nested classes/interfaces inherited from interface jenkins.scm.api.mixin.SCMHeadMixin
jenkins.scm.api.mixin.SCMHeadMixin.Equality
-
Field Summary
Fields inherited from class jenkins.scm.api.SCMHead
PRONOUN
-
Constructor Summary
ConstructorDescriptionPullRequestSCMHead
(String name, String sourceOwner, String sourceRepo, String sourceBranch, int number, BranchSCMHead target, jenkins.scm.api.SCMHeadOrigin origin, jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy strategy) -
Method Summary
Methods inherited from class jenkins.scm.api.SCMHead
compareTo, equals, getAction, getAllActions, getName, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface jenkins.scm.api.mixin.SCMHeadMixin
getName
-
Constructor Details
-
PullRequestSCMHead
public PullRequestSCMHead(@NonNull String name, String sourceOwner, String sourceRepo, String sourceBranch, int number, BranchSCMHead target, jenkins.scm.api.SCMHeadOrigin origin, jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy strategy)
-
-
Method Details
-
getPronoun
- Overrides:
getPronoun
in classjenkins.scm.api.SCMHead
-
getNumber
public int getNumber() -
isMerge
public boolean isMerge()Whether we intend to build the merge of the PR head with the base branch.- Returns:
true
if this is a merge PR head.
-
getCheckoutStrategy
@NonNull public jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy getCheckoutStrategy()- Specified by:
getCheckoutStrategy
in interfacejenkins.scm.api.mixin.ChangeRequestSCMHead2
-
getId
- Specified by:
getId
in interfacejenkins.scm.api.mixin.ChangeRequestSCMHead
-
getTarget
- Specified by:
getTarget
in interfacejenkins.scm.api.mixin.ChangeRequestSCMHead
-
getOriginName
- Specified by:
getOriginName
in interfacejenkins.scm.api.mixin.ChangeRequestSCMHead2
-
getSourceOwner
-
getSourceBranch
-
getSourceRepo
-
getOrigin
@NonNull public jenkins.scm.api.SCMHeadOrigin getOrigin()- Specified by:
getOrigin
in interfacejenkins.scm.api.mixin.SCMHeadMixin
- Overrides:
getOrigin
in classjenkins.scm.api.SCMHead
-