Class PullRequestSCMHead

java.lang.Object
jenkins.scm.api.SCMHead
com.cloudbees.jenkins.plugins.bitbucket.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.FixLegacy, SCMHeadWithOwnerAndRepo.PR

public class PullRequestSCMHead extends jenkins.scm.api.SCMHead implements jenkins.scm.api.mixin.ChangeRequestSCMHead2
SCMHead for a Bitbucket pull request
Since:
2.0.0
See Also:
  • Constructor Details

    • PullRequestSCMHead

      public PullRequestSCMHead(String name, String repoOwner, String repository, String branchName, String number, String title, BranchSCMHead target, jenkins.scm.api.SCMHeadOrigin origin, jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy strategy)
    • PullRequestSCMHead

      public PullRequestSCMHead(String name, String repoOwner, String repository, String branchName, BitbucketPullRequest pr, jenkins.scm.api.SCMHeadOrigin origin, jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy strategy)
    • PullRequestSCMHead

      @Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public PullRequestSCMHead(String repoOwner, String repository, String branchName, String number, BranchSCMHead target, jenkins.scm.api.SCMHeadOrigin origin)
      Deprecated.
    • PullRequestSCMHead

      @Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public PullRequestSCMHead(String repoOwner, String repository, String branchName, String number, String title, BranchSCMHead target, jenkins.scm.api.SCMHeadOrigin origin)
      Deprecated.
    • PullRequestSCMHead

      @Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public PullRequestSCMHead(String repoOwner, String repository, String branchName, String number, BranchSCMHead target)
      Deprecated.
    • PullRequestSCMHead

      @Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public PullRequestSCMHead(String repoOwner, String repository, String branchName, BitbucketPullRequest pr)
      Deprecated.
    • PullRequestSCMHead

      @Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public PullRequestSCMHead(String repoOwner, String repository, String branchName, BitbucketPullRequest pr, jenkins.scm.api.SCMHeadOrigin origin)
      Deprecated.
  • Method Details

    • getPronoun

      public String getPronoun()
      Overrides:
      getPronoun in class jenkins.scm.api.SCMHead
    • getRepoOwner

      public String getRepoOwner()
    • getRepository

      public String getRepository()
    • getBranchName

      public String getBranchName()
    • getId

      @NonNull public String getId()
      Specified by:
      getId in interface jenkins.scm.api.mixin.ChangeRequestSCMHead
    • getTitle

      public String getTitle()
    • getTarget

      @NonNull public jenkins.scm.api.SCMHead getTarget()
      Specified by:
      getTarget in interface jenkins.scm.api.mixin.ChangeRequestSCMHead
    • getCheckoutStrategy

      @NonNull public jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy getCheckoutStrategy()
      Specified by:
      getCheckoutStrategy in interface jenkins.scm.api.mixin.ChangeRequestSCMHead2
    • getOriginName

      @NonNull public String getOriginName()
      Specified by:
      getOriginName in interface jenkins.scm.api.mixin.ChangeRequestSCMHead2
    • getOrigin

      @NonNull public jenkins.scm.api.SCMHeadOrigin getOrigin()
      Specified by:
      getOrigin in interface jenkins.scm.api.mixin.SCMHeadMixin
      Overrides:
      getOrigin in class jenkins.scm.api.SCMHead