Package jenkins.model
Class CauseOfInterruption.UserInterruption
java.lang.Object
jenkins.model.CauseOfInterruption
jenkins.model.CauseOfInterruption.UserInterruption
- All Implemented Interfaces:
Serializable
- Enclosing class:
CauseOfInterruption
Indicates that the build was interrupted from UI.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jenkins.model.CauseOfInterruption
CauseOfInterruption.UserInterruption -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanHuman readable description of why the build is cancelled.getUser()Gets user, who caused the interruption.Gets ID of the user, who interrupted the build.Gets user, who caused the interruption.inthashCode()voidprint(TaskListener listener) Report a line to the listener about this cause.
-
Constructor Details
-
UserInterruption
-
UserInterruption
-
-
Method Details
-
getUserId
Gets ID of the user, who interrupted the build.- Returns:
- User ID
- Since:
- 2.31
-
getUser
Gets user, who caused the interruption.- Returns:
- User instance if it can be located.
Result of
User.getUnknown()otherwise
-
getUserOrNull
Gets user, who caused the interruption.- Returns:
- User or
nullif it has not been found - Since:
- 2.31
-
getShortDescription
Description copied from class:CauseOfInterruptionHuman readable description of why the build is cancelled.- Specified by:
getShortDescriptionin classCauseOfInterruption
-
print
Description copied from class:CauseOfInterruptionReport a line to the listener about this cause.- Overrides:
printin classCauseOfInterruption
-
equals
-
hashCode
public int hashCode()
-