Class 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:
    Serialized Form
    • 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.
    • Constructor Detail

      • 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 Detail

      • getTimestamp

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