Class GitTagSCMHead

java.lang.Object
jenkins.scm.api.SCMHead
jenkins.plugins.git.GitTagSCMHead
All Implemented Interfaces:
Serializable, Comparable<jenkins.scm.api.SCMHead>, jenkins.scm.api.mixin.SCMHeadMixin, jenkins.scm.api.mixin.TagSCMHead

public class GitTagSCMHead extends jenkins.scm.api.SCMHead implements jenkins.scm.api.mixin.TagSCMHead
Represents a Git Tag.
Since:
3.6.0
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
    GitTagSCMHead(String name, long timestamp)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    long

    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

    • GitTagSCMHead

      public GitTagSCMHead(@NonNull String name, long timestamp)
      Constructor.
      Parameters:
      name - the name.
      timestamp - the timestamp of the tag, for lightweight tags this should be the last commit, for annotated tags this should be the tag date.
  • Method Details

    • getTimestamp

      public long getTimestamp()
      Specified by:
      getTimestamp in interface jenkins.scm.api.mixin.TagSCMHead