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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Human 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.int
hashCode()
void
print
(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
null
if it has not been found - Since:
- 2.31
-
getShortDescription
Description copied from class:CauseOfInterruption
Human readable description of why the build is cancelled.- Specified by:
getShortDescription
in classCauseOfInterruption
-
print
Description copied from class:CauseOfInterruption
Report a line to the listener about this cause.- Overrides:
print
in classCauseOfInterruption
-
equals
-
hashCode
public int hashCode()
-