Package hudson.model

Class Cause.UserIdCause

java.lang.Object
hudson.model.Cause
hudson.model.Cause.UserIdCause
Direct Known Subclasses:
BuildCommand.CLICause
Enclosing class:
Cause

public static class Cause.UserIdCause extends Cause
A build is started by an user action.
Since:
1.427
  • Constructor Details

    • UserIdCause

      public UserIdCause()
      Constructor, which uses the current User.
    • UserIdCause

      public UserIdCause(@CheckForNull String userId)
      Constructor.
      Parameters:
      userId - User ID. null if the user is unknown.
      Since:
      2.96
  • Method Details

    • getUserId

      @Exported(visibility=3) @CheckForNull public String getUserId()
    • getUserName

      @Exported(visibility=3) public String getUserName()
    • getUserUrl

      @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @CheckForNull public String getUserUrl()
    • getShortDescription

      public String getShortDescription()
      Description copied from class: Cause
      One-line human-readable text of the cause. Historically, this method's return value was used to render HTML on the UI as well. Since Jenkins 2.315 and 2.303.2, the return value is interpreted as text. To have rich HTML output on the UI, provide a custom description.jelly view for your subclass. See the documentation.
      Specified by:
      getShortDescription in class Cause
    • print

      public void print(TaskListener listener)
      Description copied from class: Cause
      Report a line to the listener about this cause.
      Overrides:
      print in class Cause
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object