Class ResetReferenceAction

java.lang.Object
io.jenkins.plugins.analysis.core.model.ResetReferenceAction
All Implemented Interfaces:
Action, ModelObject, Serializable

public class ResetReferenceAction extends Object implements Action, Serializable
Marker for a build to indicate that this build should serve as a new reference build for the quality gate evaluation of the next build. This marker helps to reset the reference build computation to restart the new issue computation. Additionally, this action stores information about who reset the quality gate and when it was reset.
Author:
Ullrich Hafner
See Also:
  • Method Details

    • getId

      public String getId()
    • getUserId

      public String getUserId()
      Returns the ID of the user who reset the quality gate.
      Returns:
      the user ID
    • getUserName

      public String getUserName()
      Returns the full name of the user who reset the quality gate, if available.
      Returns:
      the user's full name, or the user ID if the full name is not available
    • getTimestamp

      public long getTimestamp()
      Returns the timestamp when the quality gate was reset.
      Returns:
      the timestamp in milliseconds
    • getFormattedTimestamp

      public String getFormattedTimestamp()
      Returns a user-friendly relative time string for the reset timestamp.
      Returns:
      the relative time (e.g., "2 hours ago")
    • getIconFileName

      @CheckForNull public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      @CheckForNull public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      @CheckForNull public String getUrlName()
      Specified by:
      getUrlName in interface Action