Class ResetReferenceAction
java.lang.Object
io.jenkins.plugins.analysis.core.model.ResetReferenceAction
- All Implemented Interfaces:
Action,ModelObject,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 Summary
Modifier and TypeMethodDescriptionReturns a user-friendly relative time string for the reset timestamp.getId()longReturns the timestamp when the quality gate was reset.Returns the ID of the user who reset the quality gate.Returns the full name of the user who reset the quality gate, if available.
-
Method Details
-
getId
-
getUserId
Returns the ID of the user who reset the quality gate.- Returns:
- the user ID
-
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
Returns a user-friendly relative time string for the reset timestamp.- Returns:
- the relative time (e.g., "2 hours ago")
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-