Package jenkins.model

Class CauseOfInterruption.UserInterruption

    • Constructor Detail

      • UserInterruption

        public UserInterruption​(@NonNull
                                User user)
      • UserInterruption

        public UserInterruption​(@NonNull
                                String userId)
    • Method Detail

      • getUserId

        @NonNull
        public String getUserId()
        Gets ID of the user, who interrupted the build.
        Returns:
        User ID
        Since:
        2.31
      • getUser

        @NonNull
        public User getUser()
        Gets user, who caused the interruption.
        Returns:
        User instance if it can be located. Result of User.getUnknown() otherwise
      • getUserOrNull

        @CheckForNull
        public User getUserOrNull()
        Gets user, who caused the interruption.
        Returns:
        User or null if it has not been found
        Since:
        2.31
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object