Class GitHubSCMHead<T extends GitHubCause<T>>

java.lang.Object
jenkins.scm.api.SCMHead
com.github.kostyasha.github.integration.multibranch.head.GitHubSCMHead<T>
All Implemented Interfaces:
Serializable, Comparable<jenkins.scm.api.SCMHead>, jenkins.scm.api.mixin.SCMHeadMixin
Direct Known Subclasses:
GitHubBranchSCMHead, GitHubPRSCMHead, GitHubTagSCMHead

public abstract class GitHubSCMHead<T extends GitHubCause<T>> extends jenkins.scm.api.SCMHead
See Also:
  • Nested Class Summary

    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

    Constructors
    Constructor
    Description
    GitHubSCMHead(String name, String sourceId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    abstract String
    fetchHeadSha(org.kohsuke.github.GHRepository remoteRepo)
     
    abstract String
    getHeadSha(T cause)
     
     

    Methods inherited from class jenkins.scm.api.SCMHead

    compareTo, equals, getAction, getAllActions, getName, getOrigin, getPronoun, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GitHubSCMHead

      public GitHubSCMHead(@NonNull String name, String sourceId)
  • Method Details

    • getSourceId

      public String getSourceId()
    • fetchHeadSha

      public abstract String fetchHeadSha(org.kohsuke.github.GHRepository remoteRepo) throws IOException
      Throws:
      IOException
    • getHeadSha

      public abstract String getHeadSha(T cause)
    • createSCMRevision

      public GitHubSCMRevision createSCMRevision(T cause)