Package jenkins.scm.api.mixin
Interface ChangeRequestSCMHead2
- All Superinterfaces:
- ChangeRequestSCMHead,- Comparable<SCMHead>,- SCMHeadMixin,- Serializable
Additional attributes of a 
ChangeRequestSCMHead that should have been in the original mixin but we are not
 targeting Java 8 so we cannot add the default methods to the interface and must have an ugly 2 class instead.- Since:
- 2.2.0
- 
Nested Class SummaryNested classes/interfaces inherited from interface jenkins.scm.api.mixin.SCMHeadMixinSCMHeadMixin.Equality
- 
Method SummaryModifier and TypeMethodDescriptionReturns theChangeRequestCheckoutStrategyof thisChangeRequestSCMHead.Returns the name of the actual head on the source control system which may or may not be different fromSCMHeadMixin.getName().Methods inherited from interface jenkins.scm.api.mixin.ChangeRequestSCMHeadgetId, getTargetMethods inherited from interface java.lang.ComparablecompareToMethods inherited from interface jenkins.scm.api.mixin.SCMHeadMixingetName, getOrigin
- 
Method Details- 
getCheckoutStrategyReturns theChangeRequestCheckoutStrategyof thisChangeRequestSCMHead.- Returns:
- the ChangeRequestCheckoutStrategy.
 
- 
getOriginNameReturns the name of the actual head on the source control system which may or may not be different fromSCMHeadMixin.getName(). For example in GitHub or Bitbucket this method would return the name of the origin branch whereasSCMHeadMixin.getName()would return something likePR-24. It is perfectly acceptable for a SCM implementation to return the same value asSCMHeadMixin.getName()where the SCM implementation does not have a separate concept of origin name.- Returns:
- the name this ChangeRequestSCMHeadwould have if theSCMSourcewere configured against theSCMHeadMixin.getOrigin()directly and the change request were be discoverable as a regularSCMHeadorSCMHeadMixin.getName()if such a concept is not possible in the backing source control system.
 
 
-